ANT

How do I get Ant Compiling from within Eclipse?



Ant Build can’t find compiler (javac) - an error experienced when trying to compile code using an Ant
script from within Eclipse sometimes occurs on Windows XP. Ant cannot find where the compiler is. A solution is to go to Eclipse’s Window Menu. Select Preferences -> Ant -> Runtime. Pick the Classpath tab and access the Global Entries. From here, “Add External Jars”. You’ll want to find and select the tools.jar underneath the Java jdk lib directory. That should solve the problem.
Subpages (1): Short Tutorial on Ant
Comments