This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

jar cross dependency hell


I have a SWT app that I wrote 1.5+ years ago that
uses axis for client side web service to register the user.
Back then I managed to get gcj on Windows to compile
a working executable.

Today tried to compile that app for Linux using gcj
with current jar/libs and have spent a couple of hours
realigning/renaming/locating the necessary jar files
because the world's changed (jar file names)
and because I never setup a full gcj for Linux awhile
back.

Just got snagged though on axis dragging in a sun
awt class not found in libgcjawt.so:
   org/apache/axis/components/image/JDK13IO.java:49:
   error:
   cannot find file for class
   sun.awt.image.codec.JPEGImageEncoderImpl

And (venting) wondering why axis needs a sun awt
class to decode a JPEG image.

I apologize for venting.  If anyone wants to poke at
the gcj command I'm up to (don't know how many
more jars I might end up dragging in if I try to finish
this experiment) ... (w EOLs thrown in and dev
system is current ubuntu)

gcj -O1 -fno-bounds-check -fno-store-check
-llibgcjawt.so
-mwindows
--main=com.visassist.cuelinereader.CueLineReader
--classpath .;/usr/share/java/activation.jar;/usr/share/java/inetlib.jar;
/usr/share/java/gnumail.jar;/usr/share/java/logkit.jar;
/usr/share/java/log4j-1.2.jar;/usr/share/java/commons-logging.jar;
/usr/share/java/commons-discovery.jar;
tomcat/webapps/axis/WEB-INF/lib/saaj.jar;
tomcat/webapps/axis/WEB-INF/lib/jaxrpc.jar;
tomcat/webapps/axis/WEB-INF/lib/wsdl4j-1.5.1.jar;
tomcat/webapps/axis/WEB-INF/lib/axis.jar
-o appExecutable
/usr/share/java/activation.jar
/usr/share/java/inetlib.jar
/usr/share/java/gnumail.jar
/usr/share/java/logkit.jar
/usr/share/java/log4j-1.2.jar
/usr/share/java/commons-logging.jar
/usr/share/java/commons-discovery.jar
tomcat/webapps/axis/WEB-INF/lib/saaj.jar
tomcat/webapps/axis/WEB-INF/lib/jaxrpc.jar
tomcat/webapps/axis/WEB-INF/lib/wsdl4j-1.5.1.jar
tomcat/webapps/axis/WEB-INF/lib/axis.jar
... (my app's java files)


____
Duplicating the jar files in both classpath and for
compiling may no longer be necessary.  I don't know.

Suggestions appreciated ...

Thanks,
Heitzso


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]