Highlighted
New Member.
576 views

calling procedural cobol from java I get error

Jump to solution

Exception in thread "main" java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
 at java.lang.ClassLoader.loadLibrary(Unknown Source)
 at java.lang.Runtime.loadLibrary0(Unknown Source)
 at java.lang.System.loadLibrary(Unknown Source)
 at com.microfocus.cobol.RuntimeSystem.<clinit>(Unknown Source)
 at DatabaseBmw.main(DatabaseBmw.java:107)

 

I am running Visual Cobol 2.3 in Eclipse

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: calling procedural cobol from java I get error

Jump to solution
It looks like PATH does not have <prod>\bin or <prod>\bin64 on it (use bin64 for you 64bit version of java).

Have you used the createnv.bat (or setupenv.bat) before executing "java DatabaseBmw"?

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: calling procedural cobol from java I get error

Jump to solution
Have you added the mfcobol.jar file in the Visual COBOL bin folder to your CLASSPATH?
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: calling procedural cobol from java I get error

Jump to solution
It looks like PATH does not have <prod>\bin or <prod>\bin64 on it (use bin64 for you 64bit version of java).

Have you used the createnv.bat (or setupenv.bat) before executing "java DatabaseBmw"?

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.