Results 1 to 4 of 4
  1. #1
    drea007 is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default problem concerning javac

    hey, could someone pls help me, I can't seem to make this work.
    -my path goes like this:
    C:\Program Files\Java\jdk1.6.0_21\bin;%SystemRoot%\system32;% SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Adobe\AGL;

    -java -version
    java version "1.6.0_21"

    -javac -version
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

  2. #2
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    javac -version
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    javac -version does work fine in mine.

    One way is to check JAVA_HOME and set up it right.
    Oh yeah, what happens when, you do javac MyFirstProgram.java

    -Regards

  3. #3
    drea007 is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default

    the same will come out:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. compilation problem "javac:file not found..."
    By Faruq in forum New To Java
    Replies: 9
    Last Post: 02-02-2010, 06:35 PM
  2. problem with javac
    By dangr in forum New To Java
    Replies: 2
    Last Post: 01-16-2010, 10:18 PM
  3. [SOLVED] javac problem
    By MithunDhar in forum New To Java
    Replies: 15
    Last Post: 04-06-2009, 04:19 AM
  4. javac?
    By sardare in forum Eclipse
    Replies: 1
    Last Post: 06-14-2008, 02:06 AM
  5. javac DOS
    By rdunne in forum New To Java
    Replies: 3
    Last Post: 01-01-2008, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •