Results 1 to 3 of 3
  1. #1
    leonard is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Compile failed, messages should have been provided

    I have this problem
    Java Code:
    [javac] Compiling 1178 source files to C:\exj\classes
    [javac] java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    [javac] Exception in thread "main"
    C:\dbC\build.xml:75: Compile failed, messages should have been provided.
    Total time: 1 second
    what's the problem?
    do you have any ideas?

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    The tools.jar file is not in your class path. This jar is typically part of the jdk. I think ant is trying to invoke this class without using the javac.exe but it cannot find it in the class path.

    My guess is that you only have the JRE installed and not the JDK or if you do you are running java.exe from the JRE and not the JDK directory.

  3. #3
    Swamipsn is offline Member
    Join Date
    Jul 2007
    Rep Power


    Pls check all jar files are presented in lib directory or not? Pls let us to know about the JDK version

Similar Threads

  1. Error Messages Not Showing Up
    By nvidia in forum Web Frameworks
    Replies: 0
    Last Post: 04-07-2008, 10:41 PM
  2. Replies: 0
    Last Post: 03-31-2008, 10:21 AM
  3. how can server send messages every 5 min?
    By dim_ath in forum Networking
    Replies: 7
    Last Post: 01-10-2008, 03:59 PM
  4. Replies: 0
    Last Post: 09-28-2007, 12:53 PM
  5. Jsf Error Messages - Retain
    By vaswin in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 08-05-2007, 08:22 PM

Posting Permissions

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