Re: [javaCompiler-users] Request for AWT information
Status: Beta
Brought to you by:
soapy
From: Lee D. P. <le...@3s...> - 2006-12-21 18:37:16
|
Thanks for the quick reply. > Do you compile for Windows or for Linux? I'm specifically trying to compile on Windows for this application. > 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. =20 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? 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. I'm going to get the source to this external library and compile it directly, hopefully that will resolve the issue. Thanks again, Lee > -----Original Message----- > From: jav...@li... > [mailto:jav...@li...] On Behalf Of > Marco Trudel > Sent: 21 December 2006 17:44 > To: A mailing list for general questions and discussions. > Subject: Re: [javaCompiler-users] Request for AWT information >=20 > Lee D. Painter wrote: > > Hi, > > > > > > > > I've been looking at JNC and it shows much promise J > > > > > > > > However I'm trying to compile a small java app on Windows that uses AWT > > but am getting undefined reference errors for AWT methods. >=20 > Do you compile for Windows or for Linux? > Does that application run with a Sun 1.4 JRE or does it depend on 1.5 > methods? >=20 > If you only compile for Windows and the application runs with a Sun 1.4 > JRE, then it's probably a bug. >=20 >=20 > > I assume this > > is because I need to configure JNC somehow to link to an awt.dll (like > > the one in the AWT example). >=20 > No, you don't have to do anything special. If you want to compile the > AWT example, just add it as source and compile it. > awt.dll and the other files are only needed at runtime. >=20 >=20 > > I've searched these mailing lists and > > cannot find any information about how this can be achieved. Can someone > > provide a quick overview of what we need to do to get AWT support > working? >=20 > Nothing, it runs out of the box :-) > Or at least should. I mainly program SWT, so I didn't have fancy > applications to test. So your feedback is really welcome. >=20 >=20 > Marco >=20 >=20 > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |