Re: [javaCompiler-users] Request for AWT information
Status: Beta
Brought to you by:
soapy
From: Lee D. P. <le...@3s...> - 2007-01-02 08:06:56
|
Thanks Marco, I'll try converting to PNG. > -----Original Message----- > From: jav...@li... > [mailto:jav...@li...] On Behalf Of > Marco Trudel > Sent: 01 January 2007 20:56 > To: A mailing list for general questions and discussions. > Subject: Re: [javaCompiler-users] Request for AWT information >=20 > Lee D. Painter wrote: > > Marco, > > > > I have now been able to compile and test a native build of our > > application and all functionality is working as expected but there is > > one issue that will presently stop us using this in production. When > > displaying images that are compiled into the .exe they are corrupted. > > > > You can see this for yourself. > > > > Original Java Runtime: http://3sp.com/Q38CEW924W/1.GIF > > > > Native Compiled .exe: http://3sp.com/Q38CEW924W/2.GIF > > > > Is this a known issue? >=20 > Yes, I recently stumbled over it myself. It seems that only GIFs have > the problem. I suggest to use PNGs instead of GIFs. >=20 >=20 > > To workaround the problem I thought it would be possible to reference a > > jar file instead of compiling it into the .exe as this jar file only > > contains image resources. However if I uncheck the relevant jar file in > > the archive section of the JNC GUI I get the following error on compile: > > > > creating "Agent.exe" for Windows > > - processing agent-resources.jar > > > > failed: > > java.io.FileNotFoundException: > > C:\DOCUME~1\lee\LOCALS~1\Temp\JNCTempti0w8q.out\archive.a: The system > > cannot find the file specified. >=20 > If you uncheck the box, then only referenced classes will be used from > the jar. Since you've only resources in that jar, nothing will be pulled > in. This creates an error. You have to remove the jar completely from > the list. > But I think the image doesn't get corrupted during compilation. The > problem is at runtime. I tried to load my GIFs from the filesystem but > they painted wrong too (if I remember right)... >=20 >=20 > Marco >=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 |