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]

Re: Problems using libswt.a and multiple jars


Øyvind Harboe wrote:
I would very much like to use libswt.a, but there appears
to be a problem as soon as I compile in more than one other
.jar. This manifests itself as a segmentation fault in this
case, and in others I get oodles of error messages that the SWT stuff can't be found.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12006


Øyvind


I do this on windows, with the package mentioned in the bug-report without problems, maybe you could try to compile each jar file to an object file alone, and then linke them together, this is how I do it, and it works fine with 6 jar-files + libswt.a.

eg:

gcj -c -Os jakarta-regexp-1.2.jar

gcj --CLASSPATH=\thisiscool-gcc\swt\win32\lib\swt.jar \
	-c -Os HelloSWT.java

gcj  --main=HelloSWT -s -o HellOSWT.exe *.o \
	\thisiscool-gcc\swt\win32\lib\libswt.a

joerg

--
Jörg Maisenbacher
   "There are only 10 types of people in the world:
    Those who understand binary and those who don't."


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