Hey guys, I have a question about sending and receiving MIDI messages...
How? I have tried many different variations of code but get nothing...
I would be greatful if someone could point me in the right direction.
It's the thing that gives you the exception you posted above, but with the rest of the information.
(Also note that the exception documentation may provide you with a clue as to what's going wrong.)
Tom Winn
Greenhorn
Joined: Dec 20, 2009
Posts: 9
posted
0
debug:
Exception in thread "Thread-3" java.lang.RuntimeException: Uncompilable source code - unreported exception javax.sound.midi.InvalidMidiDataException; must be caught or declared to be thrown
at MidiIOEvent.run(MidiIOEvent.java:72)
at java.lang.Thread.run(Thread.java:619)
BUILD SUCCESSFUL (total time: 9 seconds) Is what I get from the output window, with the task window show:
unreported exception javax.sound.midi.InvalidMidiDataException; must be caught or declared to be thrown | MidiIOEvent.java | line 72 |
unreported exception javax.sound.midi.InvalidMidiUnavailableException; must be caught or declared to be thrown | MidiIOEvent.java | line 74 |
That's a compilation error: fix your Java first, then deal with the MIDI. Check out Java exception handling in whatever resource you're using to learn Java, or search the web.
Tom Winn
Greenhorn
Joined: Dec 20, 2009
Posts: 9
posted
0
The program works fine with out the midi code in, I've played around displaying the values from the textfields on the console output.
But thanks for the help... Will have to try and find a source that shows how to send midi.
You're not understanding what I said: this has nothing to do with MIDI yet; your code isn't compiling because of Java errors. The message explains what's missing--you're neither catching, nor throwing, a checked exception.
You are running this from an IDE, right? David is right; always make sure that all (and I really mean all) compiler errors are gone before you run your application.
Tom Winn
Greenhorn
Joined: Dec 20, 2009
Posts: 9
posted
0
Yeah, running it from the IDE... I honestly don't know how to fix this, I have been searching for a while and drawn up nothing... But I will keep searching till I can get an answer.
Tom Winn
Greenhorn
Joined: Dec 20, 2009
Posts: 9
posted
0
Think i might have found the answer, try and catch!!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.