dcsimg
Error compiling java files using javac in Ant
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Madhusudhan_Rao
Posted On:   Tuesday, December 13, 2005 01:04 PM

I am having problms compiling the programs using Ant. The error i am getting is as given below ' Unable to find javac compiler com.zit.tools.javac.Main is not on the classpath Perhaps JAVA_HOME does not point to the JDK I have set the JAVA_HOME to the directory where i have installed java. Also if i directly run javac it is recognised and i can compile programs but while using ant it wont work. Can anyone let me know what is the error .... and how to set it. I went through the ant help but i did not get. Thank You    More>>

I am having problms compiling the programs using Ant.
The error i am getting is as given below


' Unable to find javac compiler
com.zit.tools.javac.Main is not on the classpath
Perhaps JAVA_HOME does not point to the JDK


I have set the JAVA_HOME to the directory where i have installed java. Also if i directly run javac it is recognised and i can compile programs but while using ant it wont work.


Can anyone let me know what is the error .... and how to set it. I went through the ant help but i did not get.


Thank You

   <<Less

Re: Error compiling java files using javac in Ant

Posted By:   Roseanne_Zhang  
Posted On:   Tuesday, December 13, 2005 01:58 PM

My guess is your JAVA_HOME is pointing to the JRE, not the jdk... Of cource, I could be wrong.
About | Sitemap | Contact