Re: [javaCompiler-users] Request for AWT information
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2006-12-21 19:18:02
|
Lee D. Painter wrote: > Thanks for the quick reply. > >> Do you compile for Windows or for Linux? > > I'm specifically trying to compile on Windows for this application. Yeah, on Windows, but on Windows for Linux or for Windows? It's all kind of confusing because you can crosscompile :-) But read below... >> Does that application run with a Sun 1.4 JRE or does it depend on 1.5 >> methods? > > Heh, well actually the code I'm compiling is designed to run with any > JVM 1.1 or above so I don't think that is the issue. > > I've just tested the AWT example and that compiles ok so it must be > something in my configuration. I was compiling from a set of jar files >>from our standard java build so I've changed to use source and there are > less warnings, in fact the only warnings I'm seeing now are from one of > the libraries we are using and again they are awt and swing methods. Do > you think there is an issue with linkage and compiling from jars? Yes, of course! I forgot to add some configuration for jar compiling! Thanks for pointing that out. I'll release a new Version tomorrow. You'll only need to update the GUI frontend, the huge compilers stay the same... In the mean time, just unpack the jars and compile from the directory with the extracted classes. I usually suggest to compile from classes instead of the sources anyway. > I don't know if it's relevant but I could get the same jars to compile > using the 0.9 version of NativeJ although that failed with > ClassNotFoundExceptions when AWT stuff was loaded. Yeah, AWT/Swing doesn't work in 0.9. > I'm going to get the source to this external library and compile it > directly, hopefully that will resolve the issue. Not needed as explained above. I hope it works by compiling from the classes... Marco |