FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 770 : Can't launch exported applet .jar
Last modified: 2008-05-13 22:40
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Mukei
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-05-12 01:06
Hello,
I am using processing 0135, a Macbook under OS X 10.5.2 and Java1.5
After exporting to an applet when I launch the .jar I get error in the console:
Exception in thread "main"
java.lang.NoClassDefFoundError: processing/core/PApplet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:675)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
java.lang.ClassLoader.loadClass(ClassLoader.java:316)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
When exporting I get 2 red lines:
Ignoring sub-folder "JLayer1.0"
Ignoring sub-folder "MpegAudioSPI1.9.4"
(I am using ESS)
Thanks by advance !
Additional Comment
#1 From fry 2008-05-12 05:57
when using libraries, several JAR files are exported; you cannot launch one
by itself.
Additional Comment
#2 From Mukei 2008-05-12 22:40
Thanks for your answer !
Yet, I was trying to launch directly the .jar (which I won't try again!) because
when I use the index.html I get the page but the applet does not launch, it
stays white.
The browser (Safari+Firefox2) status window shows:
Applet com.sum.opengl.util.JOGLAppletLauncher started
and nothing happen.
Would you like me to send you the file or ?
Anyway, I wanted to thank you for all you are doing and offering us Processing
!!
THANKS !! ^.^
Additional Comment
#3 From Mukei 2008-05-12 22:49
I use ESS and want to use the microphone of the distant computer so as said
on the ESS web site I signed myApplet.jar (no other .jar ...)
But after looking at the java console when launching in safari, it seems I don't
get the permission to use the audio (?).
Java Plug-in 1.5.0
Using JRE version 1.5.0_13 Java HotSpot(TM) Client VM
User home directory = /Users/Thomas
Exception in thread "AWT-EventQueue-2"
java.security.AccessControlException: access denied
(javax.sound.sampled.AudioPermission record)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurityMa
nager.java:56)
at
com.sun.media.sound.SimpleInputDevice.implOpen(SimpleInputDevice.java:24
1)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:103)
at
com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.open(SimpleInp
utDevice.java:632)
at krister.Ess.Ess.startInput(Ess.java:356)
at krister.Ess.AudioInput.start(AudioInput.java:90)
at universe10.setup(universe10.java:95)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at
processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at
com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at
com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.j
ava:258)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268)
at java.awt.Component.dispatchEventImpl(Component.java:4144)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j
ava:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Error while running applet.
java.lang.RuntimeException: java.security.AccessControlException: access
denied (javax.sound.sampled.AudioPermission record)
at
processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.security.AccessControlException: access denied
(javax.sound.sampled.AudioPermission record)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurityMa
nager.java:56)
at
com.sun.media.sound.SimpleInputDevice.implOpen(SimpleInputDevice.java:24
1)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:103)
at
com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.open(SimpleInp
utDevice.java:632)
at krister.Ess.Ess.startInput(Ess.java:356)
at krister.Ess.AudioInput.start(AudioInput.java:90)
at universe10.setup(universe10.java:95)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at
processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at
com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at
com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCan
vas.java:298)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j
ava:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.RuntimeException: java.security.AccessControlException: access
denied (javax.sound.sampled.AudioPermission record)
at
processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.security.AccessControlException: access denied
(javax.sound.sampled.AudioPermission record)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurityMa
nager.java:56)
at
com.sun.media.sound.SimpleInputDevice.implOpen(SimpleInputDevice.java:24
1)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:103)
at
com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.open(SimpleInp
utDevice.java:632)
at krister.Ess.Ess.startInput(Ess.java:356)
at krister.Ess.AudioInput.start(AudioInput.java:90)
at universe10.setup(universe10.java:95)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at
processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at
com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at
com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCan
vas.java:298)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j
ava:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-2"
java.security.AccessControlException: access denied
(javax.sound.sampled.AudioPermission record)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurityMa
nager.java:56)
at
com.sun.media.sound.SimpleInputDevice.implOpen(SimpleInputDevice.java:24
1)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:103)
at
com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.open(SimpleInp
utDevice.java:632)
at krister.Ess.Ess.startInput(Ess.java:356)
at krister.Ess.AudioInput.start(AudioInput.java:90)
at universe10.setup(universe10.java:95)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at
processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at
com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at
com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.j
ava:258)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268)
at java.awt.Component.dispatchEventImpl(Component.java:4144)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j
ava:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-2"
java.security.AccessControlException: access denied
(javax.sound.sampled.AudioPermission record)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurityMa
nager.java:56)
at
com.sun.media.sound.SimpleInputDevice.implOpen(SimpleInputDevice.java:24
1)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:103)
at
com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.open(SimpleInp
utDevice.java:632)
at krister.Ess.Ess.startInput(Ess.java:356)
at krister.Ess.AudioInput.start(AudioInput.java:90)
at universe10.setup(universe10.java:95)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at
processing.opengl.PGraphicsOpenGL$1.display(PGraphicsOpenGL.java:227)
at
com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:281)
at
com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
at
javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.j
ava:258)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268)
at java.awt.Component.dispatchEventImpl(Component.java:4144)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.j
ava:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Additional Comment
#4 From fry 2008-05-13 05:23
that's not a bug, it's a more general question that can be asked on the
discourse board. i think it's actually been asked before, try doing a
search for your error.
Additional Comment
#5 From Mukei 2008-05-13 22:40
Thank you very much for your answer !
Indeed, I search with the last message I wrote and I could find.
My error was that I needed to sign all the .jar
Sorry for taking of your time !