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 & HelpPrograms › loadImage() versus JRE 1.4.0*
Page Index Toggle Pages: 1
loadImage() versus JRE 1.4.0* (Read 334 times)
loadImage() versus JRE 1.4.0*
Jul 14th, 2006, 12:39am
 
Are there any known limitations of the various 1.4.0* JRE's with loadImage and JPEG images?

Specifically, I have a sketch that runs fine from the 0115 IDE with the included 1.4.2_10-b03, but fails to run from a browser with 1.4.0-b92 with this in the console:

java.lang.NoClassDefFoundError
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at processing.core.PApplet.loadImage(PApplet.java:3056)
 (et cetera)

It'll also run from a browser with 1.4.2_12-b03.

I guess I'm wondering if the statement in the FAQ about recommending "1.4" might need further minor version qualification?

Or should 1.4.0 be ok and I perhaps have something wrong elsewhere?

Thanks.


[edit]
spoke too soon, 1.4.2_12-b03 will load applet, but image is loaded incorrectly (so maybe just a bad jpeg? but happens on others too)
skeletal test applet at:  http://www.davebollinger.com/scratch/boxfittest/
Page Index Toggle Pages: 1