help needed urgently - TechRepublic
General discussion
March 8, 2002 at 03:20 PM
krishnapup

help needed urgently

by krishnapup . Updated 24 years, 3 months ago

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

This discussion is locked

All Comments