Re: unable to import javax.sound.midi even after installing jmf
- From: "SlowLearner" <martin@xxxxxxxxxxxxxxxxxxxxx>
- Date: 28 Nov 2006 15:01:27 -0800
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
.
- References:
- unable to import javax.sound.midi even after installing jmf
- From: SlowLearner
- Re: unable to import javax.sound.midi even after installing jmf
- From: Andrew Thompson
- Re: unable to import javax.sound.midi even after installing jmf
- From: SlowLearner
- Re: unable to import javax.sound.midi even after installing jmf
- From: SlowLearner
- Re: unable to import javax.sound.midi even after installing jmf
- From: Chris Uppal
- unable to import javax.sound.midi even after installing jmf
- Prev by Date: Re: Log4j wrapper
- Next by Date: Re: lost in XML
- Previous by thread: Re: unable to import javax.sound.midi even after installing jmf
- Next by thread: passing a file to an applet..
- Index(es):