dear friends , when i try to compile my java files through ant i get following message. JAVA_HOME environment variable is not set. If build fails because sun.* classes could not be found you will need to set the JAVA_HOME environment variable to the installation directory of java.
actually i do not know how to set home variables in java i already install jdk1.2.2 in c drive . i also install ant in c drive in ant folder. what can i do now???
posted 14 years ago
If you are running windows, see help on "environment variable". Alternatively you can use SET JAVA_HOME = .... from the command prompt and invoke ant from the same shell.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).