Hi, Class file versions differ between Java versions and are only backward compatible.
In this case most probably Java 1.6 is not installed on OSX or not the default and you are trying to use Java 1.5.x with CDK jar compiled with Java 1.6 . Hope this helps, Nina On 9 December 2010 18:17, Xin Gong <xg...@galenea.com> wrote: > Hi Guys, > > > > I am trying to do some 2D rendering work. My program run very well on my > window xp but failed on OSX leopard 10.5 with complain of “class file has > wrong version 50.0, should be 49.0”. I would very appreciate that if you > could provide some input. > > > > Here is the error message: > > > > > > $ export CLASSPATH=./cdk-jchempaint-15.jar:./cdk-1.3.7.jar > > > > $ javac ./rederning.java > > Shared archive: sharing disabled for server vm > > ./rederning.java:12: cannot access org.openscience.cdk.interfaces.IMolecule > > bad class file: > ./cdk-1.3.7.jar(org/openscience/cdk/interfaces/IMolecule.class) > > class file has wrong version 50.0, should be 49.0 > > Please remove or make sure it appears in the correct subdirectory of the > classpath. > > import org.openscience.cdk.interfaces.IMolecule; > > ^ > > 1 error > > > > I was using same jar files in window environment. > > > > Thanks a lot, > > > > Xin > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cdk-user mailing list > Cdk-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdk-user > >
------------------------------------------------------------------------------
_______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user