Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 57352 invoked by uid 500); 21 Aug 2001 20:00:01 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 57338 invoked from network); 21 Aug 2001 20:00:01 -0000 Date: 21 Aug 2001 19:59:39 -0000 Message-ID: <20010821195939.5340.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: [DO NOT REPLY: Bug 3192] J2EE_HOME environment variable problem X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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: + + + + 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. + +