aspose file tools*
The moose likes Beginning Java and the fly likes who can answer me this simple question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "who can answer me this simple question?" Watch "who can answer me this simple question?" New topic
Author

who can answer me this simple question?

ang_yin
Greenhorn

Joined: Dec 18, 2001
Posts: 1
when I execute the program underbelow,
there is always a wrong :
Exception in thread "main" java.lang.NoClassDefFoundError: MusicClient
what is wrong with the program?? please help me

public class MusicClient
{

public static void main(String[] args)
{

System.out.println("test");

}
}
omar khan
Ranch Hand

Joined: Feb 01, 2001
Posts: 183
Originally posted by ang_yin:
Exception in thread "main" java.lang.NoClassDefFoundError: MusicClient

From the directory where there is MusicClient.class launch

It should work.
Your classpath is not properly set.
Paddy Totti
Greenhorn

Joined: Dec 12, 2001
Posts: 9
If it still not work, u can try to reinstall jdk again
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
ang_yin,
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. You need to remove the underscore. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy

"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: who can answer me this simple question?