I believe that environment variables are case sensitive.. try JAVA_HOME. -Roy
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 22, 2002 3:03 PM > To: [EMAIL PROTECTED] > Subject: New User - Problem > > > Hello, > > I am attempting to use Ant to build J2EE tutorial examples as outlined on > the Sun web site. My background in Java is very limited, the > probable cause > of my difficulties. > > Anyway, here is what I am getting: > > C:\j2eetutorial\examples>ant all > The filename, directory name, or volume label syntax is incorrect. > 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: 0 seconds > C:\j2eetutorial\examples>set java_home > JAVA_HOME=C:\jdk1.3.1_02 > > As you can see, JAVA_HOME is set to point to the installation directory. > Typing javac from the same location yields the help text, as you would > expect. > > I would very much appreciate any help. > > Thanks, > > Fred Yale > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>