ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [DO NOT REPLY: Bug 3192] J2EE_HOME environment variable problem
Date Tue, 21 Aug 2001 19:59:39 GMT
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3192

*** shadow/3192	Tue Aug 21 12:47:30 2001
--- shadow/3192.tmp.5337	Tue Aug 21 12:59:39 2001
***************
*** 40,42 ****
--- 40,85 ----
  ------- Additional Comments From admiralspb@yahoo.com  2001-08-21 12:47 -------
  Created an attachment (id=437)
  This is a standard build.xml for j2ee online tutorial and java.sun.com. I didn't change
it in any way.
+ 
+ 
+ ------- Additional Comments From admiralspb@yahoo.com  2001-08-21 12:59 -------
+ I have attached the build.xml file from j2ee tutorial on java.sun.com. You can 
+ download the tutorial from:
+ 
+ http://java.sun.com/j2ee/tutorial/index.html
+ 
+ In their bundle there is this build.xml file and to the best of my knowledge it 
+ is the only one there in examples. 
+ 
+ I tried to build "converter" target entering "ant converter" with all my env 
+ vars properly set, but in lower case (both var names and their respective 
+ values). Here is my paths.cmd:
+ 
+ set ant_home=c:\ant
+ set java_home=c:\jdk1.3.1
+ set j2ee_home=c:\j2eesdk1.3
+ 
+ etc.
+ 
+ and "ant converter" didn't compile giving me a "[javac]" compile error, 
+ something like "Class SessionBean could not be found in 
+ ConverterBean.java" .... This class is normally placed in "c:\j2eesdk1.3
+ \lib\j2ee.jar" and ant constructs the path to it like this:
+ 
+ <property name="j2eepath"  value="${myenv.J2EE_HOME}/lib/j2ee.jar" />
+ 
+ And, since I have my env var j2ee_home in lower case (j2ee_home instead of 
+ J2EE_HOME) ant couldn't have constructed the correct classpath to j2ee.jar.
+ 
+ After I have changed my paths.cmd file to:
+ 
+ set ANT_HOME=c:\ant
+ set JAVA_HOME=c:\jdk1.3.1
+ set J2EE_HOME=c:\j2eesdk1.3
+ 
+ Everything compiled without any problems. So I think that the lower case 
+ environment var j2ee_home was the problem.
+ 
+ Hope this helps.
+ 
+ 

Mime
View raw message