Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2000 08:42:56 -0400
From:      "Michael E. Mercer" <mmercer@ipass.net>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Problem with appletviewer in jdk1.2.2b10
Message-ID:  <39F43250.FF59FF45@ipass.net>
References:  <20001023003332.A556@unknown.whichever.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I spent two hours last night trying to figure out why AUDIO does not work
and I keep getting NoClassDefFoundError for HaeDevice. Finally after getting
DEBUG to true, it spits out this same Error. The only difference is it is
libaudio.so
instead of libfontmanager.so.


any help on this is much appreciated.

later
Michael Mercer

ps: here's the output. I started the Java2Demo.jar and this came out immediately.
Now if I click on the MIX tab and then click play, I get a NoClassDefFoundError for
HaeDevice.


 > /usr/local/jdk1.2.2/bin/java -jar Java2Demo.jar
Instantiating sun.audio.SunAudioClip
Instantiating sun.audio.SunAudioClip
Instantiating sun.audio.SunAudioClip
Java Sound Engine Version: jdk_build
Using library: audio
Here is the problem!!!
java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2.2/jre/lib/i386/libaudio.so:
/usr/local/jdk1.2.2/jre/lib/i386/libaudio.so: Undefined symbol "__get_eh_context"
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1319)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1235)
        at java.lang.Runtime.loadLibrary0(Runtime.java:470)
        at java.lang.System.loadLibrary(System.java:774)
        at sun.audio.HaeMixer$1.run(HaeMixer.java:55)
        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.HaeMixer.<clinit>(HaeMixer.java:52)
        at sun.audio.HaeDevice.<clinit>(HaeDevice.java:25)
        at
sun.audio.AudioContainerInputStream.setupConversions(AudioContainerInputStream.java:253)

        at
sun.audio.AudioContainerInputStream.<init>(AudioContainerInputStream.java:204)
        at sun.audio.AudioAuInputStream.<init>(AudioAuInputStream.java:56)
        at
sun.audio.AudioContainerInputStream.getStream(AudioContainerInputStream.java:760)
        at sun.audio.AudioStream.<init>(AudioStream.java:50)
        at sun.audio.SunAudioClip.<init>(SunAudioClip.java:44)
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at
sun.applet.AppletAudioClip.createAppletAudioClip(AppletAudioClip.java:183)
        at sun.applet.AppletAudioClip.<init>(AppletAudioClip.java:67)
        at java.applet.Applet.newAudioClip(Applet.java:225)
        at demos.Mix.JavaMedia$JavaSound.<init>(JavaMedia.java:299)
        at demos.Mix.JavaMedia.<init>(JavaMedia.java:118)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:241)
        at DemoPanel.<init>(DemoPanel.java:56)
        at DemoGroup.<init>(DemoGroup.java:85)
        at Java2Demo.<init>(Java2Demo.java:123)
        at Java2Demo.main(Java2Demo.java:460)
Instantiating sun.audio.SunAudioClip
this should be RIFF: RIFF
total audio size including header = 12482
this should be WAVE: WAVE
found the fmt chunk
length of the format chunk is 16



Alexander Litvin wrote:

> Sorry for probably stupid question, but I really have no clue.
> I built jdk1.2.2b10 on my 5.0-CURRENT. Now, what I see if I just
> try to run appletviewer:
>
> archer@unknown:~>appletviewer
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2.2/j
> re/lib/i386/libfontmanager.so: /usr/local/jdk1.2.2/jre/lib/i386/libfontmanager.s
> o: Undefined symbol "__get_eh_context"
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1319)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1235)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:470)
>         at java.lang.System.loadLibrary(System.java:774)
>         at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:57)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.awt.font.NativeFontWrapper.<clinit>(NativeFontWrapper.java:41)
>         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>         at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:5
> 8)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:124)
>         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
> ronment.java:63)
>         at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:60)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:124)
>         at java.awt.Toolkit$2.run(Toolkit.java:499)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
>         at sun.applet.AppletCopyright.<init>(AppletCopyright.java:28)
>         at sun.applet.AppletViewer.mainInit(AppletViewer.java:1157)
>         at sun.applet.AppletViewer.main(AppletViewer.java:1260)
>
> Any idea what may have caused this? What should I try/do to narrow
> the source of a problem?
>
> ---
> All true wisdom is found on T-shirts.
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message



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?39F43250.FF59FF45>