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: SWT in a DLL [long]


Andrea aime wrote:
Oh, by the way,
using -findirect-dispatch triggers a different error
(jc1.exe eats up to 300MB or RAM and then exits with
the follwing message):

D:\gcc40-20051104\explorer\gcj>gcj -fjni -mwindows -findirect-dispatch -classpath org.eclipse.core.runtime_3.1.1.jar org.eclipse.osgi_3.1.1.jar org.eclipse.core.commands_3.1.0.jar org.eclipse.core.expressions_3.1.0.jar org.eclipse.jface_3.1.1.jar swt.jar explorer.jar --main=explorer_12.Explorer -o explorer org/eclipse/jface/wizard/WizardSelectionPage.java:0: internal compiler error: in parse_zip_file_entries, at java/jcf-parse.c:1390
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

I've found out that changing the jar ordering makes it compile the
application without crashing, it's just a matter of putting swt.jar before org.eclipse.jface_3.1.1.jar -> it seems that the jars must be
provided so that each jar dependencies are completely satisfied by
the previous jars in the classpath (this is not required by the standard
java runtime).


Unfortunately the generated executable (26 MB!!!) does not work as
expected, it starts and exits right away without displaying anything...

Suggestions?
Andrea Aime




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