From owner-freebsd-java Mon Oct 23 5:42:58 2000 Delivered-To: freebsd-java@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id 1C41637B479 for ; Mon, 23 Oct 2000 05:42:55 -0700 (PDT) Received: from ipass.net (dsl-2-196.dsl.rdu.ipass.net [209.170.144.196] (may be forged)) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id IAA23004 for ; Mon, 23 Oct 2000 08:42:51 -0400 (EDT) Message-ID: <39F43250.FF59FF45@ipass.net> Date: Mon, 23 Oct 2000 08:42:56 -0400 From: "Michael E. Mercer" Reply-To: mmercer@ipass.net, mmercer@lboard.com X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-java@FreeBSD.ORG Subject: Re: Problem with appletviewer in jdk1.2.2b10 References: <20001023003332.A556@unknown.whichever.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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.(HaeMixer.java:52) at sun.audio.HaeDevice.(HaeDevice.java:25) at sun.audio.AudioContainerInputStream.setupConversions(AudioContainerInputStream.java:253) at sun.audio.AudioContainerInputStream.(AudioContainerInputStream.java:204) at sun.audio.AudioAuInputStream.(AudioAuInputStream.java:56) at sun.audio.AudioContainerInputStream.getStream(AudioContainerInputStream.java:760) at sun.audio.AudioStream.(AudioStream.java:50) at sun.audio.SunAudioClip.(SunAudioClip.java:44) at java.lang.reflect.Constructor.newInstance(Native Method) at sun.applet.AppletAudioClip.createAppletAudioClip(AppletAudioClip.java:183) at sun.applet.AppletAudioClip.(AppletAudioClip.java:67) at java.applet.Applet.newAudioClip(Applet.java:225) at demos.Mix.JavaMedia$JavaSound.(JavaMedia.java:299) at demos.Mix.JavaMedia.(JavaMedia.java:118) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:241) at DemoPanel.(DemoPanel.java:56) at DemoGroup.(DemoGroup.java:85) at Java2Demo.(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.(NativeFontWrapper.java:41) > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at sun.awt.X11GraphicsEnvironment.(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.(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.(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