[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

java.lang.NoSuchMethodError problem with gcj-compiled running with Sun 1.4.2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi all,

I'm working on three java chemistry programs (cdk, jcpcdk and jmol, see 
mentors.debian.net APT archive), and I have cdk compiled with gcj 3.3.2 (from 
testing).

When I run the cdk-view shell wrapper which does:

/usr/bin/java -cp list-of-jars org.openscience.cdk.applications.Viewer $*

I get this error:

Exception in thread "main" java.lang.NoSuchMethodError: 
org.openscience.cdk.tools.LoggingTool.<init>(Ljava/lang/String;Z)V
        at org.openscience.cdk.applications.Viewer.<init>(Viewer.java:62)
        at org.openscience.cdk.applications.Viewer.main(Viewer.java:242)

I get this error often when compiling with an old Sun compiler, and running it 
with a newer compiler, or in this case, compiling with gcj 3.3.2 and running 
with Sun's java 1.4.2... Java is supposed to be platform independant :(

Can anyway shed some light on this issue?

kind regards,

Egon Willighagen

- -- 
egonw@sci.kun.nl
PhD on Molecular Representation in Chemometrics
Nijmegen University
http://www.cac.sci.kun.nl/people/egonw/
GPG: 1024D/D6336BA6

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (SunOS)

iD8DBQFADpYBd9R8I9Yza6YRAoylAJ4tsTaeb1iGphSVdCh5gIp9K+MidwCgsnOF
JzoJkojrCsLBmjHge42cDyQ=
=kBNE
-----END PGP SIGNATURE-----



Reply to: