SWT, GCJ, semi-static binary ?

Rutger Ovidius ovid@mailandnews.com
Sun Aug 17 20:33:00 GMT 2003


>===== Original Message From Anthony Green <green@redhat.com> =====
>On Sat, 2003-08-16 at 22:45, Rutger Ovidius wrote:
>> What the heck is lib-g2gui? I don't have one.. Why is it looking for
>> it?
>
>The ClassLoader is trying to find a class in the g2gui package.  Do you
>have a g2gui package?  I'm curious to find out what happens when you
>recompile -fassume-compiled and run again.  Does your app use
>Class.forName() to load classes in the g2gui package?

I do not have a call to Class.forName() anywhere in the source.

The app is called g2gui.

cd $LIBS
gcj $CLASSPATH -fassume-compiled -w -c -O $JARS/g2gui.jar

gcj --main=net.ml.g2gui.view.G2Gui -fassume-compiled -Wl,-rpath,. -o g2gui 
$LIBS/*.o -L. -lswt-gtk-2135 -lswt-pi-gtk-2135

Doesn't seem to make a difference.

Packages are named:
net.ml.g2gui.model
net.ml.g2gui.view
net.ml.g2gui.view.*

There is a class called "G2Gui.java" within the net.ml.g2gui.view package 
which contains main().

The jar I export from Eclipse is called g2gui.jar.

jars:/ boot.jar  g2gui.jar  jface.jar  regexp.jar  runtime.jar  trove.jar  
xercesImpl.jar  xmlParserAPIs.jar

swt:/ swt.jar  swt-pi.jar

I'm not quite sure what I'm looking for that would cause this requirement for 
lib-g2gui(.so).



More information about the Java mailing list