Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 May 2000 20:46:25 -0400
From:      "Michael E. Mercer" <mmercer@ipass.net>
To:        "'FreeBSD Java mailing list'" <freebsd-java@FreeBSD.ORG>
Subject:   ClassNotFoundError when running Java2Demo.jar
Message-ID:  <39136B61.2FBAA50C@ipass.net>

next in thread | raw e-mail | index | archive | help
FreeBSD 4.0-Stable
using patchset 7, unixODBC, dgs, am using the release build,
Note: I am using the release build to bootstrap the build process...

however this exception is thrown using the release java and the build/freebsd
java...
I have verified that both these classes are in the jre/lib/rt.jar file.

I would also like to mention that the window size for most applications are too
small,
what I mean is if I just act as if I am resizing the window, then all the inner
components
get resized correctly...

anyways,

Run the Java2Demo
> java -cp Java2Demo.jar Java2Demo
or
> java -jar Java2Demo.jar

then goto the MIX tab,
in the java media box ( lower left ) in the Mix1 tab,
hit the play button on the sfx-medley.rmf
This exception is thrown.







Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: sun/audio/HaeDevice
        at sun.audio.AudioPlayer.<init>(AudioPlayer.java:118)
        at sun.audio.AudioPlayer.<init>(AudioPlayer.java:97)
        at sun.audio.AudioPlayer$1.run(AudioPlayer.java:89)
        at sun.audio.ActionWrapper.run(AudioSecurity.java:128)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.audio.AudioSecurity.doPrivileged(AudioSecurity.java:60)
        at sun.audio.AudioPlayer.getAudioPlayer(AudioPlayer.java:86)
        at sun.audio.AudioPlayer.<clinit>(AudioPlayer.java:67)
        at sun.audio.SunAudioClip.play(SunAudioClip.java:61)
        at sun.applet.AppletAudioClip.play(AppletAudioClip.java:201)
        at demos.Mix.JavaMedia$JavaSound.playAudio(JavaMedia.java:354)
        at demos.Mix.JavaMedia$JavaSound.actionPerformed(JavaMedia.java:371)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)

        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:204)

        at java.awt.Component.processMouseEvent(Component.java:3162)
        at java.awt.Component.processEvent(Component.java:3001)
        at java.awt.Container.processEvent(Container.java:1011)
        at java.awt.Component.dispatchEventImpl(Component.java:2396)
        at java.awt.Container.dispatchEventImpl(Container.java:1056)
        at java.awt.Component.dispatchEvent(Component.java:2309)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2064)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1848)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1751)
        at java.awt.Container.dispatchEventImpl(Container.java:1043)
        at java.awt.Window.dispatchEventImpl(Window.java:749)
        at java.awt.Component.dispatchEvent(Component.java:2309)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: sun/audio/AudioPlayer
        at sun.audio.SunAudioClip.play(SunAudioClip.java:56)
        at sun.applet.AppletAudioClip.play(AppletAudioClip.java:201)
        at demos.Mix.JavaMedia$JavaSound.playAudio(JavaMedia.java:354)
        at demos.Mix.JavaMedia$JavaSound.actionPerformed(JavaMedia.java:371)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)

        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:204)

        at java.awt.Component.processMouseEvent(Component.java:3162)
        at java.awt.Component.processEvent(Component.java:3001)
        at java.awt.Container.processEvent(Container.java:1011)
        at java.awt.Component.dispatchEventImpl(Component.java:2396)
        at java.awt.Container.dispatchEventImpl(Container.java:1056)
        at java.awt.Component.dispatchEvent(Component.java:2309)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2064)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1848)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1751)
        at java.awt.Container.dispatchEventImpl(Container.java:1043)
        at java.awt.Window.dispatchEventImpl(Window.java:749)
        at java.awt.Component.dispatchEvent(Component.java:2309)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39136B61.2FBAA50C>