Skip to main content

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

Hi satyadas,

Could you confirm the exact Micro Focus product you have installed and whether it is a personal edition, please? Thanks.

Regards,

Raquel

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

Hi Raquel,

I have installed Visual COBOL for Eclipse on SUSE 12 and the serial number is 600000723770.
This error happens while compiling the .cbl code.

 

 


I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

Hi Satya,

I'm sorry to hear about the problem you are having licensing the product. Could you provide the following information?

1) Output of the command "uname -a", as executed at the command prompt on SUSE system in question
2) Output of the command "cat /opt/microfocus/VisualCOBOL/etc/cobver", again executed at the command prompt
3) The complete output of a current compile attempt, showing the latest error message

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

HI Blair,

I have tried working on this in two separate Linux system. Attaching the result from both of them.

SUSE Linux 12:

1. uname -1 -->
Linux ip-172-31-88-27 4.4.82-6.3-default #1 SMP Mon Aug 14 14:14:02 UTC 2017 (4c72484) x86_64 x86_64 x86_64 GNU/Linux

2. cat /opt/microfocus/VisualCOBOL/etc/cobver -->

cobol v3.0.0
PRN=KXCSU/AAF:Ao.U4.13.04
PTI=32/64 bit
PTI=Micro Focus Visual COBOL for Eclipse 3.0
PTI=pkg_157629
PTI=MFInstaller

3. I tried executing the command "cob -xcvPC "DIRECTIVES=/home/ec2-user/Scripts/options" sitesim1.cbl" and this gave the below error:

cob64 -xcvPC DIRECTIVES=/home/ec2-user/Scripts/options sitesim1.cbl
* Micro Focus COBOL V3.0 revision 000 Compiler
* Copyright (C) Micro Focus 1984-2017. All rights reserved.
* Accepted - verbose
* Accepted - NOBOUND
* Accepted - DIRECTIVES(/home/ec2-user/Scripts/options)
* Accepted - REF
* Accepted - ANS85
* Accepted - OPTIONAL-FILE
* Accepted - ASSIGN(EXTERNAL)
* Accepted - VSC2(2)
* Accepted - NOBOUND
* Accepted - PERFORM-TYPE(OSVS)
* Accepted - IBMCOMP
* Accepted - OSEXT(cpy)
* Accepted - SEQUENTIAL(LINE)
* Accepted - SETTING
* Accepted - REMOVE(EOS)
* Accepted - REMOVE(NCHAR)
* Accepted - ENTCOBOL
* Accepted - list("sitesim1.lst")
Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1.
*1507-U
Illegal command line
cob64: error(s) in compilation: sitesim1.cbl



OpenSUSE 42.3:

1. Linux linux-ixka 4.4.92-31-default #1 SMP Sun Oct 22 06:56:24 UTC 2017 (1d80e8a) x86_64 x86_64 x86_64 GNU/Linux

2. cobol v3.0.0
PRN=KXCSU/AAF:Ao.U4.13.04
PTI=32/64 bit
PTI=Micro Focus Visual COBOL for Eclipse 3.0
PTI=pkg_157629
PTI=RPM

3. The error remains same as above

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

In addition to the details it is understood that the way to activate the license is through eclipse IDE.
We tried to invoke the eclipse but got the following error:

ip-172-31-88-27:~ # export DISPLAY=172.31.88.27:0.0
ip-172-31-88-27:~ # /opt/microfocus/VisualCOBOL/bin/eclipse
Starting Eclipse at Display 172.31.88.27:0.0
Please Wait...
ip-172-31-88-27:~ # Unable to init server: Could not connect: Connection refused
Visual COBOL: Cannot open display:
Visual COBOL:
GTK Version Check
Unable to init server: Could not connect: Connection refused
Visual COBOL: Cannot open display:
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Unable to init server: Could not connect: Connection refused
^C
ip-172-31-88-27:~ # Unable to init server: Could not connect: Connection refused
Visual COBOL:
An error has occurred. See the log file
/opt/microfocus/VisualCOBOL/eclipse/eclipse/configuration/1509558564074.log
^C



The log for 1509558564074 (above) gives the below:

!SESSION 2017-11-01 17:49:23.855 -----------------------------------------------
eclipse.buildId=4.6.0.I20160606-1100
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -feature com.microfocus.eclipse.core.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product -feature com.microfocus.eclipse.core.product

!ENTRY org.eclipse.osgi 4 0 2017-11-01 17:49:29.548
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4559)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)
at org.eclipse.swt.widgets.Display.create(Display.java:942)
at org.eclipse.swt.graphics.Device.<init>(Device.java:174)
at org.eclipse.swt.widgets.Display.<init>(Display.java:562)
at org.eclipse.swt.widgets.Display.<init>(Display.java:553)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:789)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:160)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:168)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

Hi Satya,

You can also install the license at the command line. To help you with the steps, please see the following video, which walks you through the installation and licensing of a product on Linux. (The video covers a different product, Visual COBOL Development Hub, but the steps for licensing will be the same.)

www.youtube.com/watch

Starting at about 4:58, the video covers installing licenses on Unix at the command line.

Blair


I was trying to compile my code through cmd but got the following error.

" Error[18]: No license code is available for feature RestrictedNativeChecker on host 127.0.0.1. "

Can someone please help. I had installed the trial version just 2 days back.

Thank you so much Blair. I was finally able to resolve the issue and able to compile the code.

I am extremely grateful for your timely help.