We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › java compile once run anywhere
Page Index Toggle Pages: 1
java compile once run anywhere (Read 1317 times)
java compile once run anywhere
Dec 31st, 2009, 6:05am
 
The statement of compile once run anywhere seems to not hold true with a sketch that I currently work on. Running the exported application fails with this message:

sun.awt.image.ImageFormatException: Wrong JPEG library version: library is 70, caller expects 62
       at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
       at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:136)
       at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:264)
       at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:189)
       at sun.awt.image.ImageFetcher.run(ImageFetcher.java:153)
The file http://[...]233fc5b contains bad image data, or may not be an image.

$ java -version  
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.7pre) (6b17~pre3-1)
OpenJDK Client VM (build 16.0-b10, mixed mode, sharing)
$ uname -a
Linux lazy 2.6.32-trunk-686 #1 SMP Thu Dec 24 05:52:30 UTC 2009 i686 GNU/Linux

The application runs fine with the JRE shipped with the processing IDE. Has dll-hell finally taken over the java-world?

--
peter
Re: java compile once run anywhere
Reply #1 - Dec 31st, 2009, 10:51am
 
the openjdk doesn't work with processing (or vice versa) - download the sun one and use that.
Page Index Toggle Pages: 1