ant error: unable to find a javac compiler


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ant error: unable to find a javac compiler

  1. #1
    Join Date
    Dec 2004
    Posts
    6

    ant error: unable to find a javac compiler

    I was using ant 1.5 with no problems until recently...then upgraded to 1.6 and had all sorts of problems so have gone back to 1.5. Now I get the error:

    Code:
    ...unable to find a javac compiler:
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK

    (JAVA_HOME is correct) when trying to compile anything. I've read a ton of posts about this, all of which say to copy tools.jar into $ANT_HOME/lib - I've done that and still got the problem. Any ideas?

    TIA

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    what is the value of java_home
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  3. #3
    Join Date
    Dec 2004
    Posts
    6
    hi cjard, it's c:\j2sdk1.4.2_02 which is the right path for my sdk...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center