 |
 |
no javax.sound
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Hanover, NH, USA
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |