Error now that I have upgraded to latest JChem version

User 0908c5ccdd

12-02-2008 14:13:01

Hi





I followed your instructions and downloaded the Windows .exe installer so that I could upgrade my JChem installation. Now JChem Manager does not work and I see the error message below:
Quote:
Exception in thread "main" java.lang.UnsupportedClassVersionError: chemaxon/util


/DotfileUtil (Unsupported major.minor version 48.0)


at java.lang.ClassLoader.defineClass0(Native Method)


at java.lang.ClassLoader.defineClass(Unknown Source)


at java.security.SecureClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.access$100(Unknown Source)


at java.net.URLClassLoader$1.run(Unknown Source)


at java.security.AccessController.doPrivileged(Native Method)


at java.net.URLClassLoader.findClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at java.lang.ClassLoader.loadClassInternal(Unknown Source)


at chemaxon.jchem.db.SettingsHandler.<init>(SettingsHandler.java:32)


at chemaxon.jchem.JChemManager.<clinit>(JChemManager.java:38)


C:\Program Files\ChemAxon\JChem\bin>


Please help... ?

ChemAxon 9c0afc9aaf

12-02-2008 15:52:52

Hi,








1. I suggest to check your CLASSPATH system environment variable:


Code:
echo %CLASSPATH%



It should not contain either jchem.jar or MarvinBeans.jar (or any ChemAxon classes)





2. Have you downloaded the installer without Java ?


Installing the versions with JRE can greatly simplify the situation.





3. In case using a public (system) Java please make sure it is at least version 1.4.2 or better.





Please let me know if this helps.





Best regards,





Szilard

User 0908c5ccdd

12-02-2008 16:07:21

Szilard wrote:
Hi,








1. I suggest to check your CLASSPATH system environment variable:


Code:
echo %CLASSPATH%



It should not contain either jchem.jar or MarvinBeans.jar (or any ChemAxon classes)





2. Have you downloaded the installer without Java ?


Installing the versions with JRE can greatly simplify the situation.





3. In case using a public (system) Java please make sure it is at least version 1.4.2 or better.





Please let me know if this helps.





Best regards,





Szilard
Hi





1. I get





Code:
C:\Program Files\ChemAxon\JChem\jre\lib\crimson.jar;C:\Program Files\ChemAxon\JChem\jre\lib\ojdbc14.jar






2. I chose the download without JRE included (http://www.chemaxon.com/download.php?d=/data/download/jchem/jchem-5_0_0-windows.exe)





If I choose the other option, Windows Installer with Java, do I need to first remove my existing Java Home files?





3. I was under the impression that both JDK and JRE 1.6.0 were installed, however when I type JAVA -VERSION I see that it is v1.3 so I'm assuming this is the cause of the problem.

ChemAxon 9c0afc9aaf

12-02-2008 16:37:40

Quote:
however when I type JAVA -VERSION I see that it is v1.3 so I'm assuming this is the cause of the problem.
Yes, this seems to be the cause.





I use the following to take manual control of the used system Java:





- Define a JAVA_HOME environment variable (e.g. "c:\Program Files\Java\jdk1.5.0_07")


- Insert "%JAVA_HOME%\bin;" at the front of the PATH environment variable





This way you can be sure which Java version will be executed, and you can change it easily if needed.





(This is for executables, does not apply to applets of course)





Best regards,





Szilard

ChemAxon 9c0afc9aaf

12-02-2008 16:42:50

Quote:
If I choose the other option, Windows Installer with Java, do I need to first remove my existing Java Home files?
The Java included with Marvin / JChem is completely private to these applications, does not interfere with other Java installations.





Szilard

User 0908c5ccdd

12-02-2008 16:45:22

Perfect - all working now. Many thanks for the PATH tip.