I need Help!!!!!!!!!!!!!!!
Printable View
I need Help!!!!!!!!!!!!!!!
Here Is the method:
Code:public MidiEvent makeEvent(int comd, int chan, int one, int two, int tick) {
try {
ShortMessage a = new ShortMessage();
a.setMessage(comd, chan, one, two);
MidiEvent event = new MidiEvent(a, tick);
} catch(Exception ex) {
ex.printStackTrace();
}
return event;
}
HERE IS THE ERROR:
Code:Updating property file: /home/jacob/NetBeansProjects/ScienceFairRMI/build/built-jar.properties
Compiling 6 source files to /home/jacob/NetBeansProjects/ScienceFairRMI/build/classes
/Jacob/Source/VisualMusicService.java:37: class, interface, or enum expected
public MidiEvent makeEvent(int comd, int chan, int one, int two, int tick) {
^
/Jacob/Source/VisualMusicService.java:40: class, interface, or enum expected
a.setMessage(comd, chan, one, two);
^
/Jacob/Source/VisualMusicService.java:41: class, interface, or enum expected
MidiEvent event = new MidiEvent(a, tick);
^
/Jacob/Source/VisualMusicService.java:42: class, interface, or enum expected
} catch(Exception ex) {
^
/Jacob/Source/VisualMusicService.java:44: class, interface, or enum expected
}
^
/Jacob/Source/VisualMusicService.java:47: class, interface, or enum expected
}
^
6 errors
/home/jacob/NetBeansProjects/ScienceFairRMI/nbproject/build-impl.xml:413: The following error occurred while executing this line:
/home/jacob/NetBeansProjects/ScienceFairRMI/nbproject/build-impl.xml:199: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)
Can we see some more code, especially the code around this method. Are you declaring a method inside of another method for instance?
*CLOSED*
I found out the problem