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 & HelpOther Libraries › Applet using imported library doesn't work
Page Index Toggle Pages: 1
Applet using imported library doesn't work (Read 265 times)
Applet using imported library doesn't work
Nov 18th, 2008, 2:10pm
 
hi there
i'm importing the pdf library to write a pdf and it works fine when i run the program from the IDE but when i export an applet it doesn't work at all.  if i run from the webpage i get an X at the top left corner of the applet window and the java console gives me the following:

Code:

java.lang.UnsupportedClassVersionError: stereotomic (Unsupported major.minor version 49.0)


at java.lang.ClassLoader.defineClass0(Native Method)


at java.lang.ClassLoader.defineClass(Unknown Source)


at java.security.SecureClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.defineClass(Unknown Source)


at java.net.URLClassLoader.access$100(Unknown Source)


at java.net.URLClassLoader$1.run(Unknown Source)


at java.security.AccessController.doPrivileged(Native Method)


at java.net.URLClassLoader.findClass(Unknown Source)


at sun.applet.AppletClassLoader.findClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at sun.applet.AppletClassLoader.loadClass(Unknown Source)


at java.lang.ClassLoader.loadClass(Unknown Source)


at sun.applet.AppletClassLoader.loadCode(Unknown Source)


at sun.applet.AppletPanel.createApplet(Unknown Source)


at sun.plugin.AppletViewer.createApplet(Unknown Source)


at sun.applet.AppletPanel.runLoader(Unknown Source)


at sun.applet.AppletPanel.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)


likewise it tells me it can't find main class if i try to run it as an application.  in the end, though, i just want to be able to run it from a webpage. any ideas?
Re: Applet using imported library doesn't work
Reply #1 - Nov 18th, 2008, 4:05pm
 
Code created by Processing requires Java 1.5 or later. You'll get this error if you have Java 1.4 or earlier installed as your default.
http://processing.org/reference/environment/platforms.html#java
Page Index Toggle Pages: 1