Re: unable to import javax.sound.midi even after installing jmf
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 16:29:13 -0000
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
.
- Follow-Ups:
- 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: Andrew Thompson
- Re: unable to import javax.sound.midi even after installing jmf
- 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
- unable to import javax.sound.midi even after installing jmf
- Prev by Date: Re: Giving an application a window icon in a sensible way
- Next by Date: Re: Strange performance problem
- Previous by thread: Re: unable to import javax.sound.midi even after installing jmf
- Next by thread: Re: unable to import javax.sound.midi even after installing jmf
- Index(es):