Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > no javax.sound

no javax.sound
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Hanover, NH, USA
Status: Offline
Reply With Quote
Jan 15, 2001, 10:23 PM
 

Does anyone have javax.sound ? I believe this should be a part of Java 2 but javac is complaining.
"Class java.sound.sampled.AudioFormat not found in import"

Could someone write "import javax.sound.sampled.*" at the top of a java file and then run javac for me? I want to know if my java stuffed is messed up or if Apple left out part of Java 2.

Thanks,
-Kimo
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 17, 2001, 09:47 AM
 
Two things caught my attention here:
1 - Your error statement read "Class java.sound.sampled.AudioFormat..", note the 'java' and not 'javax', but that was probably a typo and definitely not the problem.
2 - javax.sound is not a standard part of Java 2, JDK 1.2, according to the Java Developer's Almanac released by Sun. I believe that package is added as of JDK 1.3. I tried your example and it definitely does not work.

If you check this URL at javasoft, you will notice no javax.sound package listed: http://java.sun.com/products/jdk/1.2...api/index.html

Apple's Java is a blend of JDK 1.2.2 and the hotspot virtual machine 1.3.0.
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 17, 2001, 09:51 AM
 
Just a clarification - I doubt that Apple would ever leave out any portion of the core API of any particular JDK release, given the contracts with Sun and the luck Microsoft had breaking them. The MRJ releases for Classic MacOS were always right on par with the corresponding JDK version from Sun, the trick was to know exactly the version that was shipped.

------------------
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: San Jose, CA USA
Status: Offline
Reply With Quote
Jan 18, 2001, 12:00 AM
 
From what I recall, Java sound isn't working in the OS X public beta; there were technical problems getting it running in time for that release.
While it's not legal for a JDK licensee to ship a Java release that's missing part of the API, it's OK for this to happen in pre-releases such as betas.
The final release of OS X will include sound as well as all the other pieces of JDK 1.3.
     
jhays@doane.edu
Guest
Status:
Reply With Quote
Jan 21, 2001, 06:11 PM
 
Originally posted by kimojohnson:

Does anyone have javax.sound ? I believe this should be a part of Java 2 but javac is complaining.
"Class java.sound.sampled.AudioFormat not found in import"

Could someone write "import javax.sound.sampled.*" at the top of a java file and then run javac for me? I want to know if my java stuffed is messed up or if Apple left out part of Java 2.

Thanks,
-Kimo
There's no javax.alotofthings

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:25 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2