Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2010
    Posts
    13
    Rep Power
    0

    Default Sound in java applet - please help

    Hi,

    Short list of stuff
    - I run Debian Linux - the newest, clean install and fully undated (did a netinstall for full freshness)
    - there is a JDK 1.6.0 u 21 installed (/usr/share/jdk1.6.0/)
    - the JDK was installed by Root privs is a central-readable spot
    - I use Iceweasel (basically FireFox, but in blue, it seems)
    - I tried both plugins (ib/i386/libnpjp2.so and /lib/i386/ns7/libjavaplugin_oji.so)
    - I play Runescape - okay, I know, but het...it's fun... :D
    - i do not get ambient sounds in Runescape
    - I do get the music
    - I do get all the system sounds
    - I listen to music on-line like BLUEMARS - Music for the Space Traveller - that works
    - I tried the javasounddemo - it reported that Midi is not installed, and a whole list more
    - I tried to instéall JMF, that failed fron the bin, so I unpacked the zip into the /share/jdk1.6.0_21/ folder instead
    Running je JavaSoundDemo in the browser yields this:
    javax.sound.midi.MidiUnavailableException
    at javax.sound.midi.MidiSystem.getDefaultDeviceWrappe r(MidiSystem.java:1078)
    at javax.sound.midi.MidiSystem.getReceiver(MidiSystem .java:240)
    at javax.sound.midi.MidiSystem.getSequencer(MidiSyste m.java:442)
    at javax.sound.midi.MidiSystem.getSequencer(MidiSyste m.java:348)
    at Juke.open(Juke.java:107)
    at JavaSound.open(JavaSound.java:109)
    at JavaSound.stateChanged(JavaSound.java:99)
    at javax.swing.JTabbedPane.fireStateChanged(JTabbedPa ne.java:400)
    at javax.swing.JTabbedPane$ModelListener.stateChanged (JTabbedPane.java:253)
    at javax.swing.DefaultSingleSelectionModel.fireStateC hanged(DefaultSingleSelectionModel.java:116)
    at javax.swing.DefaultSingleSelectionModel.setSelecte dIndex(DefaultSingleSelectionModel.java:50)
    at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabb edPane.java:599)
    at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPa ne.java:574)
    at javax.swing.JTabbedPane.insertTab(JTabbedPane.java :710)
    at javax.swing.JTabbedPane.addTab(JTabbedPane.java:77 7)
    at JavaSound. (JavaSound.java:87)
    at JavaSoundApplet.init(JavaSoundApplet.java:55)
    at sun.applet.AppletPanel.run(AppletPanel.java:424)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.IllegalArgumentException: Requested device not installed
    at javax.sound.midi.MidiSystem.getDefaultDevice(MidiS ystem.java:1130)
    at javax.sound.midi.MidiSystem.getDefaultDeviceWrappe r(MidiSystem.java:1076)
    ... 18 more
    javax.sound.midi.MidiUnavailableException
    at javax.sound.midi.MidiSystem.getDefaultDeviceWrappe r(MidiSystem.java:1078)
    at javax.sound.midi.MidiSystem.getReceiver(MidiSystem .java:240)
    at javax.sound.midi.MidiSystem.getSequencer(MidiSyste m.java:442)
    at javax.sound.midi.MidiSystem.getSequencer(MidiSyste m.java:348)
    at Juke.open(Juke.java:107)
    at JavaSound.open(JavaSound.java:109)
    at JavaSoundApplet.start(JavaSoundApplet.java:59)
    at sun.applet.AppletPanel.run(AppletPanel.java:464)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.IllegalArgumentException: Requested device not installed
    at javax.sound.midi.MidiSystem.getDefaultDevice(MidiS ystem.java:1130)
    at javax.sound.midi.MidiSystem.getDefaultDeviceWrappe r(MidiSystem.java:1076)
    ... 8 more

    Please help...

    Tnx

    Thor

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    Well, has MIDI (or this game applet) ever worked before on this machine, with windows OS or other at one time?

    midi unavilalable: possibly the JMF is not completely supported on a 64 bit linux platform, if your system is running a 64 bit variant of Debian.

    Or possibly, this feature is not [yet] supported in an applet, if their applet isn't singed. This comes back to "does it work somewhere else" question.

    or that applet plugin implementation with your browser. I noticed recently my Ubuntu OS switched to using OpenJDK and this IcedTea plugin for applet support in browsers, and some things that used to work just up and crash now.

    Or its possible there is a host device driver module or Debian package that needs to be added, or some kind of configuration to add support to enable the use of your MIDI sound feature,

    Or your system sound device doesn't have a MIDI compatible hardware. For example, my AC97 compatible generic sound card in my notebook doesn't seem to even have any MIDI capabilities at all.

  3. #3
    Join Date
    Aug 2010
    Posts
    13
    Rep Power
    0

    Default

    Hi,

    First off : HUGE show of gratitude to give a reaction...and a lot to think about.
    On this particular system (ultra slimline compaq) I had the same trouble with Fedora13, I suspected Fedora, so I moved over to Debian. I used the netinstall - but I don't recall that to be a 64-bit system...
    Even Fedora didn't even get sound in the applets...
    By the way, I don't use windows (anymore) it's all wall-to-wall Linux here... ;-)

    Will you let me "meditate" on your answer? It gives me some stuff to think about...

    Thanks

    Thor

  4. #4
    Join Date
    Aug 2010
    Posts
    13
    Rep Power
    0

    Default

    Hi,

    Okay, the only common denominator here is ... the hardware. FC13 didn't get sound, Debian doesn't...that is not the way Linux works...I suspect the hardware. After all, an ultra slimline basically is (so I've been lead to believe) a laptop with a power supply built in :D and all the restrictions thereof built on...

    Eh, I'm looking at a new PC anyway this year. But it has to be petite (not a lot of space here) and quiet...I don't wanna to bet married to it... ;-)

    Thor

Similar Threads

  1. add sound to my applet
    By anotsu in forum Java Applets
    Replies: 4
    Last Post: 03-24-2008, 11:26 PM
  2. applet sound
    By marco in forum Java Applets
    Replies: 1
    Last Post: 09-28-2007, 10:31 PM
  3. Sound in applet Java
    By toby in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 05:52 AM
  4. Playing sound in applet??????
    By Bagesh in forum Java Applets
    Replies: 2
    Last Post: 07-13-2007, 04:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •