JChem 5.5 and JRE1.5

User dfeb81947d

10-05-2011 08:12:40

Dear Support,


I installed the new version of JChem in a Web Application under Java 1.5 and Tomcat 5.5. It's a servlet who just have to write VersionInfo.JCHEM_VERSION.


The Servlet is compiled using JRE1.5 release 22 and Tomcat server is started using also JRE 1.5 release 22.


When trying to execute VersionInfo.JCHEM_VERSION I've got


java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class chemaxon.jchem.version.VersionInfo)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1964)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:933)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)





If I build the java project using JRE1.6 and start Tomcat with the same JRE it works. If I compiled in JRE1.6 and run Tomcat in JRE1.5 I have the same error. If I build the java project in jre 1.5 and execute tomcat with jre 1.6 it works also.


Does it mean that the jre used for Jchem 5.5 must be 1.6 and later?


Thank you for your help.


Kind Regards


Jacques


ps: I know that Marvin 5.5 needs jre1.6, but I thought that Jchem still use jre1.5.

ChemAxon e274e1bada

11-05-2011 08:33:35

Hi Jaques,


Yes you are right, JChem and Marvin are Java 1.6 compatible in 5.5 version.


Best Regards, Edvard

User dfeb81947d

25-05-2011 15:27:47

Hi Edvard,


Thank you very much for your answer.


Kind Regards,


Jacques