General discussion

Locked

help needed urgently

By krishnapup ·
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 conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by gigsvoo In reply to help needed urgently

What are u trying to do actually?

Collapse -

yeah what?

by robert In reply to help needed urgently

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.

Collapse -

set JAVAHOME

by lnarendra In reply to yeah what?

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.

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Forums