Discussion Locked

help needed urgently

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hai

When i have given like this ex:

cd cactus\sample\build>ant

the following error is displayed

Buildfile: build.xml

init:
[echo] --------- Cactus Sample 1.2 ---------
[echo]
[echo] java.class.path = c:\jdk1.3.1\lib\tools.jar;c:\ant\bin\\..\lib\xerce
s.jar;c:\ant\bin\\..\lib\xalan.jar;c:\ant\bin\\..\lib\stylebook-1.0-b3_xalan-2.j
ar;c:\ant\bin\\..\lib\junit.jar;c:\ant\bin\\..\lib\jrefactory.jar;c:\ant\bin\\..
\lib\jaxp.jar;c:\ant\bin\\..\lib\jakarta-ant-1.4-optional.jar;c:\ant\bin\\..\lib
\crimson.jar;c:\ant\bin\\..\lib\ant.jar;c:\iic\web2mart\WEB-INF\lib;c:\tomcat\li
b;c:\tomcat\lib\common\servlet.jar;c:\jdk1.3.1\jre\lib\rt.jar;.;c:\jdk1.3.1\jre\
lib\ext;c:\tomcat\webapps\root\Web-inf\classes;c:\tomcat\lib\JSQLConnect.jar;c:\
cactus\lib\cactus.jar;c:\cactus\lib\junit.jar;c:\cactus\lib\httpclient.jar;c:\ca
ctus\lib\cactus-ant.jar;c:\ant\lib;
[echo]
[echo] java.home = c:\jdk1.3.1\jre
[echo] user.home =C:\Documents and Settings\krishnapk
[echo]
[echo] basedir = C:\cactus\sample
[echo]
[echo] cactus.jar = ${cactus.jar}
[echo] cactus.ant.jar = ${cactus.ant.jar}
[echo] servlet.jar = ${servlet.jar}
[echo] junit.jar = ${junit.jar}
[echo] httpclient.jar = ${httpclient.jar}

prepare:

prepare-compile:

compile:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 25 source files to C:\cactus\sample\target\classes

BUILD FAILED

C:\cactus\sample\build\build.xml:188: 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

can you explain and help us and what to do

bye

KrishnaPrasad

3 replies

by robert

1st thing explain what you trying to do.

2nd thing, the last part of your comment
BUILD FAILED

C:\cactus\sample\build\build.xml:188: Cannot use classic compiler, as it is not
available A common solution is to set the environment variable JAVA_HOME to your
jdk directory.

... generally means you gotta set your class paths, in the environemnt variables.

by lnarendra

Not digging into details, i would suggest set your JAVA_HOME env variable to directory where you have installed your jdk, for example

SET JAVA_HOME=c:\java\jdk1.3

and try again.

This discussion is closed to new replies.