Re: [javaCompiler-users] Request for AWT information
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2007-01-01 20:56:29
|
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? Yes, I recently stumbled over it myself. It seems that only GIFs have the problem. I suggest to use PNGs instead of GIFs. > 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. 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)... Marco |