Where's javax.sound

Hi
i've downloaded j2se 1.4.1 but when i try to import javax.sound.* it says it can't find it. Do i need to import anything else eg java.lang or what? I'm pretty sure its not an optional package.
Please help me

You aren't easily distracted from a set opinion, huh?
You got the same answer from me in that thread:
http://forum.java.sun.com/thread.jsp?forum=31&thread=32
334
You'd have to return to your thread to notice,
though,
instead of posting a new one...
I really appreciate your help docjekill, but even when i specify
javax.sound.midi
javax.sound.midi.spi
javax.sound.sampled
javax.sound.sampled.spi
all of these i still get the same error.
I've looked in scr.zip and found other packages, eg javax.swing etc, but no sound packages. Is the download incomplete or did it just stuff up?

Similar Messages

  • Where is javax.sound?

    Compiler tells me it doesn't exist, even when setting classpath as follows:
    C:\JDK\bin\javac -classpath C:\JDK\JRC\lib\rt.jar soundApp.java ...
    I have version 1.4.1.

    How old is this application you are trying to use, or how old is the code if you are getting it from another source?
    1.3 through 1.4.1 use javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, and javax.sound.sampled.spi.
    They dont try to import javax.sound in and of themselves. This may be an old program written back when javax.sound stuff wasnt included in the API and was a part of the Java Media Framework.
    Of course, I could be totally wrong here (as I havent done anything with sound stuff in Java in quite a while.)
    Just a thought.

  • Where is the javax sound package for download?

    Where is the javax sound package for download? (URL) I got the latest JDK yesterday and tried to compile some audio applet but it looks like all of the Javax stuff is missing from the latest JDK.
    Where do I download the javax sound package ?
    Dan

    This is an audio player that another posted here. I tried to compile and run it but here were the results.
    javac SimplePlayerApplet.javaSimplePlayerApplet.java:9: package javax.media does not exist
    import javax.media.*;
    ^
    SimplePlayerApplet.java:11: cannot find symbol
    symbol: class ControllerListener
    public class SimplePlayerApplet extends Applet implements ControllerListener {
    ^
    SimplePlayerApplet.java:14: cannot find symbol
    symbol : class Player
    location: class SimplePlayerApplet
    Player player = null;
    ^
    SimplePlayerApplet.java:122: cannot find symbol
    symbol : class ControllerEvent
    location: class SimplePlayerApplet
    public synchronized void controllerUpdate(ControllerEvent event) {
    ^
    SimplePlayerApplet.java:44: cannot find symbol
    symbol : class MediaLocator
    location: class SimplePlayerApplet
              MediaLocator mrl = null;
              ^
    SimplePlayerApplet.java:63: cannot find symbol
    symbol : class MediaLocator
    location: class SimplePlayerApplet
              if ((mrl = new MediaLocator(mediaFile)) == null)
              ^
    SimplePlayerApplet.java:68: cannot find symbol
    symbol : variable Manager
    location: class SimplePlayerApplet
                        player = Manager.createPlayer(mrl);
                        ^
    SimplePlayerApplet.java:69: cannot find symbol
    symbol : class NoPlayerException
    location: class SimplePlayerApplet
              } catch (NoPlayerException e) {
              ^
    SimplePlayerApplet.java:130: cannot find symbol
    symbol : class RealizeCompleteEvent
    location: class SimplePlayerApplet
         if (event instanceof RealizeCompleteEvent) {
         ^
    SimplePlayerApplet.java:165: cannot find symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
         } else if (event instanceof CachingControlEvent) {
         ^
    SimplePlayerApplet.java:166: cannot find symbol
    symbol : variable Controller
    location: class SimplePlayerApplet
         if (player.getState() > Controller.Realizing)
         ^
    SimplePlayerApplet.java:170: cannot find symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
         CachingControlEvent e = (CachingControlEvent) event;
         ^
    SimplePlayerApplet.java:170: cannot find symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
         CachingControlEvent e = (CachingControlEvent) event;
         ^
    SimplePlayerApplet.java:171: cannot find symbol
    symbol : class CachingControl
    location: class SimplePlayerApplet
         CachingControl cc = e.getCachingControl();
         ^
    SimplePlayerApplet.java:181: cannot find symbol
    symbol : class EndOfMediaEvent
    location: class SimplePlayerApplet
         } else if (event instanceof EndOfMediaEvent) {
         ^
    SimplePlayerApplet.java:184: cannot find symbol
    symbol : class Time
    location: class SimplePlayerApplet
         player.setMediaTime(new Time(0));
         ^
    SimplePlayerApplet.java:186: cannot find symbol
    symbol : class ControllerErrorEvent
    location: class SimplePlayerApplet
         } else if (event instanceof ControllerErrorEvent) {
         ^
    SimplePlayerApplet.java:189: cannot find symbol
    symbol : class ControllerErrorEvent
    location: class SimplePlayerApplet
         Fatal(((ControllerErrorEvent)event).getMessage());
         ^
    SimplePlayerApplet.java:190: cannot find symbol
    symbol : class ControllerClosedEvent
    location: class SimplePlayerApplet
    } else if (event instanceof ControllerClosedEvent) {
    ^
    19 errors
    So what am I missing ...and where do I get it ??
    Dan

  • Author       "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

    Not sure where to post this issue.
    I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.
    javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
         at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
         at myPackage.MyMusicApp.main(MyMusicApp.java:14)
    Below is a small program I built that shows the code.
    package myPackage;
    import java.io.File;
    import javax.sound.midi.*;
    public class MyMusicApp {
        public static void main(String[] args) {
            try {
                Synthesizer synth = MidiSystem.getSynthesizer(); synth.open();
                File f =  new File("/Users/poorav/eclipseGIT/myApp/soundbanks/1247_KitDRY.sf2");
                Soundbank soundbank = MidiSystem.getSoundbank( f);
                synth.loadAllInstruments(soundbank);
            } catch (Exception e)
                e.printStackTrace();
    I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?
    thanks

    No satisfactory progress!
    I submitted a bug for this using the Apple bug reporter on 9th April (#11208868) and despite asking for an update, it has been completely ignored (even now). I'm not impressed.
    I then issued a (paid for) Developer Technical Support issue which was credited back to my account a few days later with no explanation. When I asked why, I eventually got: "At this time DTS does not provide code-level support for Java"!
    So, Apple are assuming to responsibility for this problem. I realise that Oracle is mostly responsible for Java but Apple took this crippled version (how much testing did they do?) and updated our customers' machines with it. This has effectively disabled a key feature of our product and has cost us damage to our company's reputation. Still Apple don't care and they rely on the fact that we are too small to sue them. You can see I'm not happy! I naively thought Apple would make some attempt to assist their developers.

  • Where to find sound podcast on iphone 4s?

    Where to find sound podcast on iphone 4s?

    In the Music app. Tap on the More button at the lower right.

  • Javax.sound

    Hi There..
    i think i'm the only person in the world with this problem...
    i have dowloaded the latest version of Java for windows (j2sdk-1_4_1_02-windows-i586) but i can't find the javax.sound library...
    heaps of other javax libraries are there (security, accessability,swing etc..), i don't understand what i am doing wrong... i thought it was supposed to be included after vers 3.
    please help!!
    Keith

    Have a look in the j2sdkblahdiblah/jre/lib directory
    There should be a large jar file called rt.jar
    all the runtime classes including javax.sound are in there.

  • Javax.sound missing with Fedora Core 3 linux's java compiler?

    I'm running Fedora core 3, and I did a complete install(selected all the packeges). I have the java compiler that FC3 installed. I can compile most things, but I seem to be missing the sound package/folder.
    This leads to an error when I try to import the sound libraries.
    //start code
    //simple non-working example
    import javax.sound.*;
    class sounds
    //end code
    results in the error "The import javax.sound cannot be resolved"
    I am trying to run a code snippet from javaAlmanac, and of course it won't work. Today, a friend of mine had the exact same problem on a windows machine using JDK 1.5.
    I'm going to test this code out on a windows machine also.
    Are there issues with the FC3 java compiler?
    Has anyone else run into and solved this issue?
    I'm considering copying the sound folder from some other Java installation, anyone try this?
    Thanks,

    I'm pretty new at this myself. I've also installed Fedora Core 3 on an AMD 64. When I do the same uname - a I get:
    Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x8 6_64 x86_64 GNU/Linux
    Maybe you didn't install as 64 bit ?
    I've also successfully installed Jave Runtime Environment. java -version gets me:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    I'd suggest installing 32 bit. I can't tell the difference when I run programmes that use 64 or 32 bits - it will be just as good.
    Eurostar

  • Where's the sound gone?

    I uploaded a video and it played fine. I uploaded two more and there is no sound for these two vidoes. Where's my sound go?
    Yes, I converted them in itunes for ipod before uploading and playing.

    Quicktime, Quicktime Pro and iTunes don't convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    See this for help: Guide to converting video for iPod (Mac/Windows).
    Converting video for the iPod using Videora.

  • JDK1.4.....where is javax.servlet*

    Does anyone know where the javax.servlet,javax.servlet.http packages are in JDK1.4?

    You need the JSDK which has the servlet.jar library. These don't come packaged with JDK1.4 as far as I know. Typically you need to donload them seperately. You'll then have to add the servlet.jar to your classpath.
    The servlet.jar can go anywhere, so long as it's in your classpath and javac and java can find it you should be okay.

  • Where is javax.servlet.http.HttpSessionBindingListener;?

    hello
    where is javax.servlet.http.HttpSessionBindingListener
    what do i ened in my classpath under jakarta/tomcat to make thi available?

    so i have this in my autoexec.bat
    set CLASSPATH=C:\j2sdk1.4.0\jre\lib\ext;c:\j2sdk1.4.0\lib\comm.jar;C:\jakarta-tomcat-4.0.1\webapps\ROOT\WEB-INF\classes\;C:\jakarta-tomcat-4.0.1\common\lib\;and still it does not see the package i need.
    am i missing something here?
    --jN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Where is the sound recorder and notes on Z3?

    Where is the sound recorder and notes on Z3?

    I have checked a couple of units here and no preinstalled note application on them either. However there are a large number of small and free notepad type applications that can be installed via the Playstore with little effort.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Where is the sound effects library?

    I have Final Cut Studio 2. Where is the sound effects sound library located? I accidentally found the royalty free music stored in a obscure place?

    Hey there, where is the royalty free music? I found the sound effects library, but can only find loops. Is that all there is?

  • How to play a wav file to LINE_OUT with javax.sound.sampled

    Hello all,
    I need to play a wav file to LINE_OUT port, but not to the SPEAKER. I am trying to do this under window NT. For some reason I get false for isLineSupported(Port.Info.LINE_OUT). I am new to javax.sound so I might be doing something wrong. Here is the code that I am using to iterate through all availible mixers and check if LINE_OUT is supported by any of them:
    Mixer.Info[] mixers = AudioSystem.getMixerInfo();
    for(int i = 0; i < mixers.length; i++){
    Mixer mixer = AudioSystem.getMixer(mixers);
    if (mixer.isLineSupported(Port.Info.LINE_OUT)) {
    System.out.println("the port is supported");
    try {
    Port line = (Port) AudioSystem.getLine(
    Port.Info.LINE_OUT);
    catch(Exception ex){
    ex.printStackTrace();
    else{
    System.out.println("the port is not supported");
    Please help

    The new bugID of the request to implement Ports is: 4558938.
    (If you voted for the old bug id: 4504642, be sure to change your votes to this new bug report since the old one was closed as a duplicate of the new one.)

  • Javax.sound.midi and external synths?

    Since I don't have a USB-to-MIDI adapter (and I lost my MIDI cables long ago), I gotta just ask: if I had an external MIDI device connected to my computer, would javax.sound.midi.getMidiDeviceInfo() theoretically return a MidiDevice object describing it? Or is javax.sound.midi really just for the computer's own music synthesizer?
    --Chris (invalidname)

    see bug 4356787. MIDI for external devices is broken.
    Add it to your bug parade votes. Let's get Sun to
    address this.will do... not like they're going to fix my other favorite bug (4119391 - RMI in real-world networks)
    Thanks.
    --Chris

  • Record my voice using JAVAX.sound

    I want to record my voice using the javax.sound.
    Can you please give if there shortest path..
    I see javax.sound.sampled.AudioSystem
    But the sampled is confusing me.. is it a beta version and need to be developed further?
    After recording, I am interested to parse the voice.

    Hmm interesting ones, I've never programmed sound using Java myself, but have you looked at http://docs.oracle.com/javase/6/docs/technotes/guides/sound/programmer_guide/contents.html ? It seems like a good doco to get started

Maybe you are looking for

  • Raid 0 (Stripe) for OS X boot disk? Best Performance and block size

    Hi, so this is a new thread to an older question I had and would like some feedback on; I have a new Mac Pro with 4 matched 1TB caviar black drives. I WILL be doing Full Time-Machine Backups, as well as an independant full-system backup regularly. Th

  • Indesign crashes randomly over very simple tasks... repeatedly.

    It won't happen often, but when it happens, it will happen repeatedly and over something very small, like deleting a column, word or page, or even adding bullet points. I'm on CS6 now, but it happened on CS5 as well, I thought upgrading would stop it

  • Error in importing qualified field values

    Hi, I have a query related to importing qualified tables. At the source side, the main fields and qualified table fields are given in 2 different sheets of Excel, joined by the product ID. While importing the qualified tables, I am only able to impor

  • Shared Photo Stream won't work

    I am trying to create a Shared Photo Stream with my iPad.  I have successfully followed available instructions to the point of inviting my wife to subscribe to the Photo Stream and having her subscribe.  The problem arises when the Shared Photo Strea

  • Not able to play my favorite game on Macbook

    Hi I recently converted to apple by buying a Macbook. However, I am unable to play my favorite game - Catan online from zone.msn.com - on this computer. Anyone has an idea whether it is possible? thanks macbook   Mac OS X (10.4.8)