Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ant and variables  RSS feed

 
Kenneth Huang
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am new to J2EE and try to study the J2EE tutorial. I have found varibles settings quite confusing. I have installed the jdk and j2ee in Windows 2000 Professonal.
c:\jdk1.3
c:\j2sdkee1.3
c:\ant
Can anyone help me to set the environment variables?
what does the following mean:
Open teh file build.xml in a text editor. Edit the line:
<property name="j2ee-home" value-C:\j2sdkee1.3" />
and set the value of the j2ee-home property to be the J2EE SDK installation directory.
If someone is starting to study J2EE Tutorial, maybe we can from a study group.
Thanks in advance.
Kenneth
 
Preety Agarwal
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kenneth i guess it means you use a notepad and open the file you have mentioned and type the root of your J2SDEE as your property.
To set up the environment variables right click on your my computer and then see advanced settings there there is an option on set environment variable. Click on the button and eneter you class path and path for j2ee and jdk. But after doing that i am not able to run as well. Hope some kind soul will reply our post and help us out.
 
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed ant in f:\xml\ant
Using NT, rightclick 'My computer' and open the Environment tab.
Fill in the Environtment variables.
E.G.
ANT_HOME
f:\xml\ant
JAVA_HOME
...where you have java installed next line my value
g:\jdk1.3
Add to the CLASSPATH variable ( ";" seperator!)
CLASSPATH
....(your path to ant.jar)
f:\Xml\ant\lib\ant.jar
I hope that I did not forget a setting.
Maybe you should add to PATH
.... (your path)
f:\Xml\ant\bin
to run ant in a command window
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!