MarvinSketch 6.1 (64-bit) Won't Launch Java Class Loader?

User 62d472f2b8

24-09-2013 14:11:19

Running on 64-bit Linux (Kubuntu 13.04)


Tried to launch msketch module directly from command line and saw the following:


 


david@dd:~/ChemAxon/MarvinBeans/bin$ ./msketch
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/david/.i4j_jres/1.6.0_41/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory            
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)                                 
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)
Could not find the main class: chemaxon.marvin.Sketch.  Program will exit.


How can I fix this? 


Thanks!

ChemAxon 5433b8e56b

26-09-2013 12:06:34

Hi,


I have moved your question to the realted topic,


Can you please check which java version you have installed on your system? Marvin requires the Oracle Java, and I assume you have OpenJDK installed, and that can cause this issue.


Regards,
Istvan 

User 62d472f2b8

26-09-2013 13:11:36

Thanks for the reply!


How Do I Determine If I have Oracle's Java or OpenJDK?

User 62d472f2b8

26-09-2013 13:15:58

Thanks for the reply!


How Do I Determine If I have Oracle's Java or OpenJDK?

User 62d472f2b8

26-09-2013 15:16:53

Hi, Istvan!


Here's the result of my java version query:


david@dd:~$ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)


Sorry that I spaced on how to provide this earlier.


Cheers,
David

ChemAxon 2c555f5717

27-09-2013 12:15:51

Dear David!


  Could you tell me exactly what OS do you use? The missing shared object is used in graphical thread synchronizing (which is used in Marvin Sketch) and it is a quite frequent issue (with the newest Java and version of this package) on Unix like machines that only the 32 or 64 version is available. Is it installed on your system? What does 


locate libXtst 

return? Is it installed properly to your system? (If not, then try:


sudo apt-get install libxtst6

It is also possible that you should install a different Java architecture (32 bit or 64 bit).
   I hope I could help, if not, please do not hesitate to ask again!


Regards:
Balázs