Re: unable to import javax.sound.midi even after installing jmf




Chris Uppal wrote:
SlowLearner wrote:

I've reinstalled everything on my laptop starting with a formatted
harddisk.

Boy oh boy! If at first you don't succeed, nuke the f***er.

(Please don't take that as criticism -- I'm impressed. And a little amused...)


import javax.sound.midi;

That should be:
import javax.sound.midi.*;

If you leave off the ".*" then Java will take "import javax.sound.midi;" as
importing a single class named "midi" from package "javax.sound". But
javax.sound has no class with that name, hence the (unfortunately misleading)
error message.

-- chris

THANKS FOR ALL YOUR HELP EVERYBODY!!
The .* on the end made all the difference
Martin

.