Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes ant problem pls. help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ant problem pls. help" Watch "ant problem pls. help" New topic
Author

ant problem pls. help

anirudh bargotra
Greenhorn

Joined: Apr 02, 2001
Posts: 9
I have downloaded and installed J2EE, JSDK and ANT, I have also set the environment variable
JAVA_HOME=C:\jdk1.3
J2EE_HOME=C:\j2eesdk1.2.2
ANT_HOME=C:\ant
I have also set the path for J2EE and ANT
SET pat=c:\jdk1.3\bin;c:\j2eesdk1.2.1\bin;c:\ant\bin
I have also set the classpath for ANT
SET classpath=c:\ant\lib\ant.jar;c:\ant\lib\parser.jar;
My deploymet tool is working on deploytool
but when I try to compile using ANT it is not working...
it gives
Error : Could not find a JVM
Pls. help
Anirudh
John Vann
Greenhorn

Joined: Jun 27, 2001
Posts: 5
well, if you copies/pasted this line exactly:
SET pat=c:\jdk1.3\bin;c:\j2eesdk1.2.1\bin;c:\ant\bin
it's a typo. should be:
SET path=c:\jdk1.3\bin;c:\j2eesdk1.2.1\bin;c:\ant\bin
also ant requires ant.jar;jaxp.jar;parser.jar (use the ant.bat file in c:\ant\bin to set this up)
not sure about deploytool, but if you can run 'ant' from a command window, the problem is with deploytool.
 
wood burning stoves
 
subject: ant problem pls. help