The Error, while I test Standardize

User 8fb8115204

09-10-2004 09:00:35

Who could give any suggestion about the following errors?


Thanks





Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/XMLReader





at chemaxon.reaction.StandardizerConfig.read StandardizerConfig.java:110


)


at chemaxon.reaction.StandardizerConfig.read(StandardizerConfig.java:95)





at chemaxon.reaction.Standardizer.<init>(Standardizer.java:289)


at chemaxon.reaction.Standardizer.main(Standardizer.java:829)

ChemAxon 9c0afc9aaf

09-10-2004 16:11:24

Hi,





Probably you are using an older JChem version with Java 1.3.1 or older.





I suggest to switch to Java 1.4 or upgrade your JChem to the latest version.





Let me know if it helps.





Szilard

User 8fb8115204

09-10-2004 16:38:45

Thanks for your help.





My Java is 1.4 and Standardize is 2.3.4. in WinXp


I think both of them are newest version.





Hope you could give me more suggestion.


Thanks

ChemAxon 9c0afc9aaf

09-10-2004 17:46:55

Hi,





This class is part of Java since 1.4:


http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/XMLReader.html





Probably you have corrupted Java installation, or it's not 1.4 after all.





Please note, that certain applications (e.g. Tomcat web server, etc.) may not use the same Java version that's visible from the command prompt.








While investigating the problem, I realized that JChem still needs "crimson.jar" in the CLASSPATH if you use it with Java 1.3 or earlier.


You can download it from:


http://xml.apache.org/crimson/


Please also note, that web servers do not use the classpath, usually the jar file should be copied into a designated directory:


(click here for Tomcat instructions: http://www.jchem.com/examples/jsp1_x/tomcat.html#jar )





(Of course no extra files are needed for Java 1.4)





Szilard

User 8fb8115204

10-10-2004 04:27:49

Thank you for your suggestion.





You are right.





Need add the path+name of crimson.jar to CLASSPATH.


(though my java is 1.4)





Now it work well.





Thank you again.

ChemAxon 9c0afc9aaf

11-10-2004 07:37:17

Very strange, it should work without crimson.jar in 1.4.





Can you tell me what is the exact output of "java -version" for you in the command-line ?


(I would like to examine that version)

User 1f0942440c

02-06-2005 20:25:34

Szilard wrote:
Very strange, it should work without crimson.jar in 1.4.





Can you tell me what is the exact output of "java -version" for you in the command-line ?


(I would like to examine that version)
I met the same problem, but later I found that though I installed Jre1.4.0, but if you type "java", actually you invoked java 1.3.1 installed under Oracle directory!

ChemAxon 9c0afc9aaf

03-06-2005 09:37:21

Hi,





You can control this with the PATH environmental variable.


It should contain the bin directory of the Java installation:





<the_desired_java_home>\bin





Best regards,





Szilard