Rob Gman

Greenhorn
+ Follow
since Jan 20, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rob Gman

Ubuntu.... perhaps I should have mentioned that at the start?
16 years ago
I'm getting a rather nasty error at runtime when trying to get this very simple sound player to work, I get the same error with the code I typed out and the pre-written code that comes with the book :-/ so i guess there is nothing wrong with the code? Here is it



and this is the runtime error


Exception in thread "main" java.lang.UnsatisfiedLinkError: init_
at gnu.javax.sound.midi.alsa.AlsaMidiDeviceProvider.init_(libgcj.so.81)
at gnu.javax.sound.midi.alsa.AlsaMidiDeviceProvider.<clinit>(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.newInstance(libgcj.so.81)
at gnu.classpath.ServiceProviderLoadingAction.run(libgcj.so.81)
at java.security.AccessController.doPrivileged(libgcj.so.81)
at gnu.classpath.ServiceFactory$ServiceIterator.loadNextServiceProvider(libgcj.so.81)
at gnu.classpath.ServiceFactory$ServiceIterator.<init>(libgcj.so.81)
at gnu.classpath.ServiceFactory.lookupProviders(libgcj.so.81)
at javax.sound.midi.MidiSystem.getMidiDeviceInfo(libgcj.so.81)
at javax.sound.midi.MidiSystem.getSequencer(libgcj.so.81)
at MiniMiniMusicApp.play(MiniMiniMusicApp.java:12)
at MiniMiniMusicApp.main(MiniMiniMusicApp.java:6)



if anyone can tell me what this means i'd be very grateful
16 years ago
Some errors I found that hopefully will save some other beginners the time I have just spent working them out.

In order to get the code to work as quoted in 2nd Edition,

in SimpleDotComGame class, the line:



should read



or i guess you could change the name of GameHelper.class to helper.class. Also in GameHelper(/helper)



should read




hope that helps.

Another also is that I didn't think it was made obvious that each class needs to be saved in a separate .java file, but then only the one with the main method in needs to be compiled.
[ January 23, 2008: Message edited by: Rob Gman ]
16 years ago