JChemManager JChemAppLauncher class not found exception

User 406e62b321

01-04-2008 13:48:43

Hi Everybody,





I just did an install on a 64 bit amd box running sles 10 using jchem-5_0_02_1-linux.sh and got the following error when I tried to launch JChemManager using the desktop icon:





java.lang.ClassNotFoundException: JChemAppLauncher


at java.net.URLClassLoader.findClass(URLClassLoader.java:492)


at java.lang.ClassLoader.loadClass(ClassLoader.java:606)


at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)


at java.lang.ClassLoader.loadClass(ClassLoader.java:563)


at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)


at com.install4j.runtime.Launcher.main(Unknown Source)





However, I was able to launch from a terminal window using jcman.





Hope this helps anyone else who comes across this issue.





Julie

ChemAxon 7c2d26e5cf

01-04-2008 14:56:51

The error message indicates that installer's jar file (that is required for the launcher) is not found.


Can you give the exact location of JChem directory?


Have you replaced/updated Java since you installed JChem.

User 406e62b321

01-04-2008 18:29:38

Thanks for the reply Tamas (this is the best forum ever!),





I believe I have changed the JVM since the JChem install (from 1.6 to 1.5.0) as I could not get Eclipse to run using 1.6.





I will try reinstalling JChem and see what happens. Do you know the name of the jar that has the JChemAppLauncer class in it?





The location of JChem is shown below. I am running jcman from its directory (bin) and it launches and the dialog to enter the database information appears, however it does not accept any keyboard or mouse input (very strange), i.e. when I try to type or click one of the boxes nothing happens. Everything else seems to work fine.





Thanks,


Julie





:/usr/share/jchem/jchem_5_0_2_1 # pwd


/usr/share/jchem/jchem_5_0_2_1


:/usr/share/jchem/jchem_5_0_2_1 # ls -l


total 1443


drwxr-xr-x 2 root root 680 Jan 2 21:31 .install4j


-rw-r--r-- 1 root root 53608 Mar 20 2008 FAQ.html


-rwxr-xr-x 1 root root 7154 Mar 20 2008 JChemManager


-rw-r--r-- 1 root root 245 Jan 2 21:43 JChemManager.desktop


-rw-r--r-- 1 root root 193 Jan 2 21:31 Library MCS.desktop


-rwxr-xr-x 1 root root 7166 Mar 20 2008 LibraryMCS


-rwxr-xr-x 1 root root 7160 Mar 20 2008 LicenseManager


-rw-r--r-- 1 root root 204 Jan 2 21:31 LicenseManager.desktop


-rw-r--r-- 1 root root 164 Jan 2 21:31 Marvin Beans Installer.desktop


-rw-r--r-- 1 root root 164 Jan 2 21:31 Marvin Beans installer.desktop


-rwxr-xr-x 1 root root 7169 Mar 20 2008 Reactor


-rw-r--r-- 1 root root 183 Jan 2 21:31 Reactor.desktop


-rw-r--r-- 1 root root 8779 Mar 20 2008 Readme.html


-rwxr-xr-x 1 root root 7179 Mar 20 2008 Standardizer


-rw-r--r-- 1 root root 198 Jan 2 21:31 Standardizer.desktop


drwxr-xr-x 3 root root 1216 Jan 2 21:30 bin


drwxr-xr-x 4 root root 928 Jan 2 21:30 cartridge


-rw-r--r-- 1 root root 116231 Mar 20 2008 changes.html


-rw-r--r-- 1 root root 596882 Mar 20 2008 chemaxon_reaction_library.zip


drwxr-xr-x 2 root root 88 Jan 2 21:30 config


drwxr-xr-x 6 root root 144 Jan 2 21:30 doc


-rw-r--r-- 1 root root 412 Jan 3 18:18 error.log


drwxr-xr-x 22 root root 632 Jan 2 21:30 examples


drwxr-xr-x 2 root root 1688 Jan 2 21:30 images


-rw-r--r-- 1 root root 354 Mar 20 2008 index.html


-rw-r--r-- 1 root root 3342 Mar 20 2008 indexframe.html


drwxr-xr-x 2 root root 120 Jan 2 21:30 intro


-rw-r--r-- 1 root root 1531 Mar 20 2008 jchem-menu.css


-rw-r--r-- 1 root root 380 Mar 20 2008 jchemexample.css


-rw-r--r-- 1 root root 4095 Mar 20 2008 jchemmanuals.css


drwxr-xr-x 3 root root 1456 Jan 2 22:00 lib


-rw-r--r-- 1 root root 14027 Mar 20 2008 license.html


drwxr-xr-x 14 root root 1024 Jan 2 21:31 marvin


drwxr-xr-x 2 root root 208 Jan 2 21:32 marvinbeans


drwxr-xr-x 2 root root 176 Jan 2 21:30 plugins


-rw-r--r-- 1 root root 557233 Mar 20 2008 reactions.mrv


-rwx------ 1 root root 7822 Mar 20 2008 uninstall


drwxr-xr-x 3 root root 72 Jan 2 21:30 util


-rw-r--r-- 1 root root 431 Mar 20 2008 version.properties


:/usr/share/jchem/jchem_5_0_2_1 # cd bin


:/usr/share/jchem/jchem_5_0_2_1/bin # ls -l


total 172


-rwxr-xr-x 1 root root 2657 Mar 20 2008 compr


-rwxr-xr-x 1 root root 2657 Mar 20 2008 config


-rwxr-xr-x 1 root root 2688 Mar 20 2008 configbuilder


-rwxr-xr-x 1 root root 2661 Mar 20 2008 count


-rwxr-xr-x 1 root root 2660 Mar 20 2008 crview


-rwxr-xr-x 1 root root 2656 Mar 20 2008 cxcalc


-rwxr-xr-x 1 root root 2661 Mar 20 2008 enumerate


-rwxr-xr-x 1 root root 2652 Mar 20 2008 evaluate


-rwxr-xr-x 1 root root 2658 Mar 20 2008 fragment


-rwxr-xr-x 1 root root 2666 Mar 20 2008 fragstat


-rwxr-xr-x 1 root root 2661 Mar 20 2008 generatemd


-rwxr-xr-x 1 root root 2656 Mar 20 2008 generfp


-rwxr-xr-x 1 root root 2663 Mar 20 2008 hitstatistics


-rwxr-xr-x 1 root root 2663 Mar 20 2008 jarp


-rwxr-xr-x 1 root root 1138 Mar 20 2008 jchem2actx.vbs


-rwxr-xr-x 1 root root 2727 Mar 20 2008 jcman


-rwxr-xr-x 1 root root 2650 Mar 20 2008 jcsearch


-rwxr-xr-x 1 root root 2661 Mar 20 2008 libmcs


-rwxr-xr-x 1 root root 2752 Mar 20 2008 license


-rwxr-xr-x 1 root root 2652 Mar 20 2008 mcs


-rwxr-xr-x 1 root root 2658 Mar 20 2008 molconvert


-rwxr-xr-x 1 root root 2651 Mar 20 2008 msketch


-rwxr-xr-x 1 root root 2661 Mar 20 2008 mspace


-rwxr-xr-x 1 root root 2649 Mar 20 2008 mview


-rwxr-xr-x 1 root root 2666 Mar 20 2008 nneib


drwxr-xr-x 2 root root 112 Jan 2 21:30 np


-rwxr-xr-x 1 root root 2666 Mar 20 2008 optimizemetrics


-rwxr-xr-x 1 root root 2647 Mar 20 2008 pca


-rwxr-xr-x 1 root root 2659 Mar 20 2008 pmapper


-rwxr-xr-x 1 root root 2760 Mar 20 2008 react


-rwxr-xr-x 1 root root 2770 Mar 20 2008 reactionTester


-rwxr-xr-x 1 root root 4569 Mar 20 2008 reactionTester.bat


-rwxr-xr-x 1 root root 2653 Mar 20 2008 rgdecomp


-rwxr-xr-x 1 root root 2669 Mar 20 2008 rmap


-rwxr-xr-x 1 root root 2668 Mar 20 2008 rtest


-rwxr-xr-x 1 root root 2668 Mar 20 2008 screeningoptimizer


-rwxr-xr-x 1 root root 2658 Mar 20 2008 screenmd


-rwxr-xr-x 1 root root 555 Mar 20 2008 setjchemhome.js


-rwxr-xr-x 1 root root 2775 Mar 20 2008 standardize


-rwxr-xr-x 1 root root 2656 Mar 20 2008 synthesisbrowser


-rwxr-xr-x 1 root root 2659 Mar 20 2008 synthesize


-rwxr-xr-x 1 root root 874 Mar 20 2008 unregactx.js


-rwxr-xr-x 1 root root 2654 Mar 20 2008 ward


:/usr/share/jchem/jchem_5_0_2_1/bin # cd ../lib


:/usr/share/jchem/jchem_5_0_2_1/lib # ls -l


total 26705


-rw-r--r-- 1 root root 24031 Mar 20 2008 aloe.jar


-rw-r--r-- 1 root root 349262 Mar 20 2008 backport-util-concurrent.jar


-rw-r--r-- 1 root root 226678 Mar 20 2008 batik-core.jar


-rw-r--r-- 1 root root 1336788 Mar 20 2008 castor-1.0.1-xml.jar


-rw-r--r-- 1 root root 90998 Mar 20 2008 chart.jar


-rw-r--r-- 1 root root 52915 Mar 20 2008 commons-logging-1.1.jar


-rw-r--r-- 1 root root 456914 Mar 20 2008 dom4j.jar


-rw-r--r-- 1 root root 95504 Mar 20 2008 forms-1.1.0.jar


-rw-r--r-- 1 root root 23044 Mar 20 2008 freehep-export-2.1.1.jar


-rw-r--r-- 1 root root 129143 Mar 20 2008 freehep-graphics2d-2.1.1.jar


-rw-r--r-- 1 root root 199139 Mar 20 2008 freehep-graphicsio-2.1.1.jar


-rw-r--r-- 1 root root 183048 Mar 20 2008 freehep-graphicsio-emf-2.1.1.jar


-rw-r--r-- 1 root root 79298 Mar 20 2008 freehep-graphicsio-pdf-2.1.1.jar


-rw-r--r-- 1 root root 72370 Mar 20 2008 freehep-io-2.0.2.jar


-rw-r--r-- 1 root root 232997 Mar 20 2008 freehep-swing-2.0.3.jar


-rw-r--r-- 1 root root 53439 Mar 20 2008 freehep-util-2.0.2.jar


-rw-r--r-- 1 root root 21962 Mar 20 2008 gluegen-rt.jar


-rw-r--r-- 1 root root 474815 Mar 20 2008 inchi-native-linux-1_1.jar


-rw-r--r-- 1 root root 742990 Mar 20 2008 inchi-native-macosx-1_1.jar


-rw-r--r-- 1 root root 991379 Mar 20 2008 inchi-native-macosx-ppc-1_1.jar


-rw-r--r-- 1 root root 503914 Mar 20 2008 inchi-native-windows-1_1.jar


-rw-r--r-- 1 root root 75660 Mar 20 2008 izmcom-natives.jar


-rw-r--r-- 1 root root 577287 Mar 20 2008 izmcomjni.jar


-rw-r--r-- 1 root root 286261 Mar 20 2008 izmcomtlb.jar


-rw-r--r-- 1 root root 24 Mar 20 2008 jar.properties


-rw-r--r-- 1 root root 15115331 Mar 20 2008 jchem.jar


-rw------- 1 root root 412 Jan 2 21:42 jchemError.txt


-rw-r--r-- 1 root root 35463 Mar 20 2008 jextexp.jar


-rw-r--r-- 1 root root 540472 Mar 20 2008 jh.jar


-rw-r--r-- 1 root root 1529 Mar 20 2008 jnbtools.jar


-rw-r--r-- 1 root root 1099620 Mar 20 2008 jogl.jar


drwxr-xr-x 2 root root 888 Jan 2 21:30 jogl_1.1.0-rc2


-rw-r--r-- 1 root root 436796 Mar 20 2008 looks-2.1.4.jar


-rw-r--r-- 1 root root 283047 Mar 20 2008 marvinOLEServer-native.jar


-rw-r--r-- 1 root root 573440 Mar 20 2008 marvinOLEServer.exe


-rw-r--r-- 1 root root 70003 Mar 20 2008 openide-lookup-1.9-patched-1.0.jar


-rw-r--r-- 1 root root 1811441 Mar 20 2008 xerces.jar


:/usr/share/jchem/jchem_5_0_2_1/lib #

ChemAxon 7c2d26e5cf

01-04-2008 22:38:07

Thanks for the bug report.


Indeed, the desktop launcher of JChemManager does not work under Linux.


The problem is that jchemapplauncher.jar is missing from the Linux installer.


I have fixed this bug in the Linux installer. So, in the next release, it will work fine.


I have uploaded the missing jar to the site, you can access it under the following URL: http://www.chemaxon.com/download.php?dl=&d=/data/download/jchem/jchemapplauncher.jar


After downloading, copy jchemapplauncher.jar into the directory of JChem.

User 406e62b321

02-04-2008 17:43:34

Thanks!





Again, you guys have the best support!





As I mentioned earlier running jcman from the command line gave me problems (gui did not receive keyboard or mouse input). I was using the JDK bundled with SLES 10 installed from YaST. I switched to a version I downloaded from Sun and everything is working great. I have been able to connect to my database (Oracle) and create the structure tables I'm planning on using.





This is the JVM that gave me problems:


java version "1.5.0"


Java(TM) 2 Runtime Environment, Standard Edition (build pxa64dev-20061002a (SR3) )


IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux amd64-64 j9vmxa6423-20061001 (JIT enabled)


J9VM - 20060915_08260_LHdSMr


JIT - 20060908_1811_r8


GC - 20060906_AA)


JCL - 20061002





This JVM works:


java version "1.5.0_15"


Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)


Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)

ChemAxon a3d59b832c

04-04-2008 10:33:31

Hi Julie,





Thank you for the detailed information on the JRE-s. To avoid this problem in the future, we plan to provide a JChem installer with bundled JRE for Linux as well from JChem 5.2. (Currently this is available for windows only.)





Best regards,


Szabolcs