SWT in a DLL [long]
Andrea aime
andrea.aime@aliceposta.it
Fri Jan 6 13:40:00 GMT 2006
Cristiano Paris wrote:
> Hi everyone,
>
> I've posted this in the MingW mailing list but I haven't received much
> feedback: maybe the topic in more appropriate for this mailing list than
> the MingW one. I'm sorry if this mail is a duplicate for some of you.
>
> I'm new to the mingw/gcj and I'm experimenting hard. I've successfully
> built the GNU Toolchain for the mingw32 target both for Linux and Windows.
>
> Details of the toolchain:
>
> - gcc 4.0.2
> - binutils 2.16.1
> - w32api 3.5
> - mingw-runtime 3.9
>
> I could compile simple SWT/JFace applications using gcj and the
> SWT/JFace libraries compiled in statically.
Hi Cristiano,
I'm trying to do more or less the same using the mingw/gcj distribution
by thisiscool.com, but I'm not even able to build the static version.
The application I'm trying to compile is the file explorer sample from
http://www-128.ibm.com/developerworks/library/os-ecgui2/
using the eclipse 3.1.1 libraries. In particular, the compilation
command is:
gcj -fjni -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
where explorer.jar is a compiled and exported version of the above
sample. Unfortunately the compilation crashes with the following
result:
org/eclipse/core/runtime/internal/adaptor/PluginConverterImpl.java: In
class 'or
g.eclipse.core.runtime.internal.adaptor.PluginConverterImpl':
org/eclipse/core/runtime/internal/adaptor/PluginConverterImpl.java: In
method 'o
rg.eclipse.core.runtime.internal.adaptor.PluginConverterImpl.findPluginManifest(
java.io.File)':
org/eclipse/core/runtime/internal/adaptor/PluginConverterImpl.java:142:
error: v
erification error at PC=166
org/eclipse/core/runtime/internal/adaptor/PluginConverterImpl.java:142:
error: l
abel part of different subroutines
org/eclipse/osgi/internal/resolver/StateWriter.java: In class
'org.eclipse.osgi.
internal.resolver.StateWriter':
org/eclipse/osgi/internal/resolver/StateWriter.java: In method
'org.eclipse.osgi
.internal.resolver.StateWriter.saveState(org.eclipse.osgi.internal.resolver.Stat
eImpl,java.io.File,java.io.File)':
org/eclipse/osgi/internal/resolver/StateWriter.java:87: error:
verification erro
r at PC=302
org/eclipse/osgi/internal/resolver/StateWriter.java:87: error: might
transfer co
ntrol into subroutine
org/eclipse/swt/SWT.java:0: confused by earlier errors, bailing out
I have no idea about what's going on.
Can anyone help?
Best regards
Andrea Aime
More information about the Java
mailing list