javax.mail, classpath and classpathx
Mon Oct 27 15:02:00 GMT 2003
Ãyvind Harboe wrote:
> Has anyone had any luck in getting javax.mail classes compiled from GNU
> - I fetched the files for classpathx from CVS and tried to compile.
> After some fiddling around, I discovered how to get ./configure + make
> going and I ended up with various .jar files. First I tried and failed
> this under CygWin, but then I remembered my Linux machine in the closet
> and voila!
what fiddling did you need to do? i.e. why did a straight ./configure &&
> - Alas, it appears that GCJ classpath compilation does not include the
> classpath/inetlib classes. My attempts to compile classpath failed.
no, inetlib is a separate module.
> // This is the first "missing class" from classpathx javax.mail
> java.lang.NoClassDefFoundError: gnu/inet/util/Logger at
> javax.mail.Session.<init>(Session.java:106) at
> javax.mail.Session.getDefaultInstance(Session.java:363) at
> javax.mail.Session.getDefaultInstance(Session.java:393) at
inetlib.jar is currently bundled as part of the classpathx mail module
and is referenced in the makefile - i don't know why you're not seeing
the only outstanding issue i'm aware of here is that classpathx
activation (on which mail depends) cannot be compiled with libgcj, as
a DataFlavor subclass overrides a static method in the libgcj
javax/activation/ActivationDataFlavor.java:0: error: non-static method
overrides static method
if you have gcj installed, you must explicitly set another java
JAVAC=javac ./configure && make
More information about the Java