Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with MIDI, no javax.sound.*?? 1

Status
Not open for further replies.

TeknomanSlade

Programmer
May 19, 2002
5
0
0
US
Now, mind you, it's been over a year since I've really
thrown myself into writing Java code, so this is probably
my own fault somehow...

Anyways, I just got the latest SDK because I'd heard they
started adding in some nice new features. So I get it
installed and decide I'm gonna try writing something that
can play a MIDI file.

Now, all the docs I've seen say to import javax.sound.midi
or whatever you need from the javax.sound area...

So I try to compile my code and this is what it says...
Code:
Playmidi.java:2: package javax.sound does not exist
import javax.sound.*;
^
It also bombed out with more errors involving all the
references to "Sequence", "Sequencer", 'ya know, stuff
pertaining to MIDI...

I've un/reinstalled already and it still refuses to compile
this code.

Any ideas?
 
In the latest sdk (1.4.1) there is no package javax.sound, you must import javax.sound.midi.*; There are also other packages like javax.sound.midi.spi that you may find interesting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top