File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what does this error message mean

 
Rick Rod
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to compile and am getting this error message can someone tell me how to correct this.

C:\Java>javac PhraseOMatic.java
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/M
ain

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like your Java installation is corrupt, as the javac command can't find the JAR file that contains the Java compiler (it's normally called "tools.jar"). I'd try reinstalling your JDK -- unless you've just done something odd like move files around yourself, in which case putting everything back where you got it should fix things.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could also be that you have different versions of the JDK on your system and you're mixing them up because your PATH is not set correctly.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic