I include my complete set of environment variables here below. Note the error message I am receiving and that JAVA_HOME IS set to C:\jdk1.3.1. Sun gives such simple directions for building the j2eetutorial\examples with ANT at
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/J2eeTutorialPreface.html C:\j2eetutorial\examples>ant all
The system cannot find the path specified.
Buildfile: build.xml
init:
savingsaccount:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 5 source files to C:\j2eetutorial\examples\build\ejb\
savingsaccount
BUILD FAILED
C:\j2eetutorial\examples\build.xml:54: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory.
Total time: 1 second
C:\j2eetutorial\examples>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\ant
APPDATA=C:\Documents and Settings\schwartzbj\Application Data
CLASSPATH=C:.;C:\j2sdkee1.3\lib\j2ee.jar;c:\ant\jakarta-ant-1.3\lib\ant.jar
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BETTY80906
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=c:
HOMEPATH=\Documents and Settings\schwartzbj
J2EE_HOME=c:\j2sdkee1.3
JAVA_HOME=c:\jdk1.3.1
LOGONSERVER=\\BETTY80906
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=c:\WINNT\system32;c:\WINNT;C:\winnt\System32\Wbem;c:\ant\jakarta-ant-
1.3\bin;c:\j2sdkee1.3.1\bin;c:\jdk1.3.1\bin;c:\forte4j\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0702
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\SCHWAR~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\SCHWAR~1\LOCALS~1\Temp
TOMCAT_HOME=c:\jakarta-tomcat\jakarta-tomcat-3.2.3
USERDOMAIN=BETTY80906
USERNAME=schwartzbj
USERPROFILE=C:\Documents and Settings\schwartzbj
windir=C:\WINNT
Here is my ANT directory structure if that is of interest:
C:\ant\jakarta-ant-1.3>dir
Volume in drive C has no label.
Volume Serial Number is 98A3-7427
Directory of C:\ant\jakarta-ant-1.3
12/07/2001 07:09p <DIR> .
12/07/2001 07:09p <DIR> ..
12/07/2001 07:09p <DIR> bin
12/07/2001 07:09p <DIR> docs
12/07/2001 07:09p <DIR> lib
03/02/2001 11:46p 2,754 LICENSE
03/02/2001 11:46p 2,758 README
03/02/2001 11:46p 649 TODO
03/02/2001 11:46p 9,142 WHATSNEW
4 File(s) 15,303 bytes
5 Dir(s) 1,081,438,208 bytes free
I do not know what path the system is not able to find or if that is causing the problem. Maybe I need to spend a week learning enough about ANT to build the examples for the j2eetutorial...
Betty
[This message has been edited by Betty Schwartz (edited December 12, 2001).]