Happy_Dude Posted November 3, 2004 Share Posted November 3, 2004 I'm stoked to have written my first Java programme so I'm sharing it with everyone. It takes a Thrust+ score and tells you what it really is. The score is entered at the commandline eg java ThrustScoreDecoder 89570 I hope someone finds it useful thrustscoredecoder.class.gz thrustscoredecoder.java.gz Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 3, 2004 Share Posted November 3, 2004 Exception in thread "main" java.lang.NoClassDefFoundError: ThrustScoreDecoder/java Quote Link to comment Share on other sites More sharing options...
Happy_Dude Posted November 3, 2004 Author Share Posted November 3, 2004 Exception in thread "main" java.lang.NoClassDefFoundError: ThrustScoreDecoder/java Note the subtle use of bold in the quote That should be . not / Quote Link to comment Share on other sites More sharing options...
Tom Posted November 3, 2004 Share Posted November 3, 2004 thomas: this happens when you try to start a java *source* file (.java) with java. the virtual machine will look for a class called java located in package ThrustScoreDecoder, which doesn't exist. you must download the .class file and start it like this: java ThrustScoreDecoder <- you mustn't enter the .class extension Quote Link to comment Share on other sites More sharing options...
Tom Posted November 3, 2004 Share Posted November 3, 2004 no, the java vm prints actually out a slash, not a dot, because package names map to directory names, so java looks in directory ThrustScoreDecoder for a class named java. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 3, 2004 Share Posted November 3, 2004 Call me stupid, but I still get the error: java ThrustScoreDecoder 89570 Exception in thread "main" java.lang.NoClassDefFoundError: ThrustScoreDecoder Quote Link to comment Share on other sites More sharing options...
Tom Posted November 3, 2004 Share Posted November 3, 2004 i assume you downloaded the .class file, changed to the directory where you saved the .class file and tried to start it ? if so, the CLASSPATH environment variable of your system doesn't contain the current directory. try something like java -cp . ThrustScoreDecoder or update the classpath variable permanently to contain the working directory (.) Quote Link to comment Share on other sites More sharing options...
Happy_Dude Posted November 16, 2004 Author Share Posted November 16, 2004 So did you get it working yet Thomas ? Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 16, 2004 Share Posted November 16, 2004 So did you get it working yet Thomas ? Yup! (though I suppose I am not exactly the one this tool was meant for ) Quote Link to comment Share on other sites More sharing options...
Happy_Dude Posted November 16, 2004 Author Share Posted November 16, 2004 Cool (though I suppose I am not exactly the one this tool was meant for ) Thats true This is for my beat thrust contest (to be commenced at an unspecified date at some time in the future) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.