Skip to main content

mfdatatools2: java.lang.NoClassDefFoundError

  • November 27, 2015
  • 0 replies
  • 0 views

Problem:

Error in running mfdatatools2 in Linux: java.lang.NoClassDefFoundError

Error message:
java.lang.NoClassDefFoundError: com/microfocus/cobol/runtime/platform/INativePlatform
at com.microfocus.fred.cli.RecordEditorHome.main(RecordEditorHome.java:77)
Caused by: java.lang.ClassNotFoundException: com.microfocus.cobol.runtime.platform.INativePlatform
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

It also opens a java window with the message "Could not obtain a valid License".

Note:
mfdatatools is only available in in Enterprise Developer/Visual COBOL Development Hub 2.3

Resolution

1. The error above is resolved by setting the mfcobolrts.jar in the CLASSPATH.
example:
export CLASSPATH=/opt/microfocus/<ed23 installation>/lib/mfcobolrts.jar:$CLASSPATH

Additional requirements to run mfdatatools2 in the Linux/Unix environment:
2. ED 2.3 requires Java 1.8
3. X-windows environment must be set-up in the in the Linux/Unix environment and on the windows client.




#mfdatatools2NoCLassDefFoundError
#MFDS
#EnterpriseDeveloper

0 replies

Be the first to reply!