emsm
|
| Posted: 05/30/2003, 8:55 AM |
|
HI,
maybe this is too simple to fix, Iam new at java and dont understand the problem
I have donloaded j2sdk and java ant and installed it.
I have pointed the Java SDK Home to C:\j2sdk and Java Ant Home to C:\apache-ant
When I build the following error occurs:
Generating Common Files
Generating "BANNER_VIE_list"
Generating "Header"
Generating "Footer"
call C:\VID\Java\apache-ant-1.5.3-1-bin\apache-ant-1.5.3-1\bin\ant.bat -buildfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~VID_JAVA20\CCSBuild\build.xml" -logfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~VID_JAVA20\CCSBuild\build.log"
=======================================
Output
init:
build:
[mkdir] Created dir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~VID_JAVA20\CCSBuild\bin
[javac] Compiling 113 source files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~VID_JAVA20\CCSBuild\bin
Error: BUILD FAILED
file:C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/~VID_JAVA20/CCSBuild/build.xml:21: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 2 seconds
=======================================
Error:
BUILD FAILED
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Can anyone help me?
|
|
|
 |
rclayh
|
| Posted: 05/30/2003, 4:23 PM |
|
Try setting an environment variable JAVA_HOME to point to c:\j2sdk\. Also you may want to check and make sure your SDK didn't install inside a folder in that folder. That doesn't sound like a standard JDK root to me.
These are just wild guesses BTW. Since you didn't mention what system you are using you can just search Google to find out how to set the environment variable, it's done differently on 98, and 2000/XP.
|
|
|
 |
emsm
|
| Posted: 06/02/2003, 8:02 AM |
|
I have tried to put the JAVA_HOME environment variable pointing to C:\j2sdk and to C:\j2sdk\bin and encontered the same problem.
I have installed Java 2 SDK, SE v1.4.1_02 in the folder C:\j2sdk
|
|
|
 |
siddiquin
|
| Posted: 06/03/2003, 9:01 PM |
|
Here is the example, first setup 1-4
1) set env "CLASSPATH" to "C:\Program Files\JavaSoft\JRE\javax\servlet;C:\Program Files\JavaSoft\JRE\javax\servlet\servlet.jar;."
2) set env "path" "C:\Program Files\JavaSoft\JRE\1.4.1_01\bin;%ANT_HOME%\bin;C:\Program Files\JavaSoft\JRE\javax\servlet;."
3) set env "ANT_HOME" to "C:\Program Files\JavaSoft\JRE\apache_ant_1.5.2_bin"
4) set env "JAVA_HOME" to "C:\Program Files\JavaSoft\JRE\apache_ant_1.5.2_bin"
Also, add in "CCS>Tools>Options>Paths"
1)"Java SDK Home" to "C:\Program Files\JavaSoft\JRE\1.4.1_01"
2)"Java ANT Home" to "C:\Program Files\JavaSoft\JRE\apache_ant_1.5.2_bin"
|
|
|
 |
emsm
|
| Posted: 06/09/2003, 9:14 AM |
|
Thx
That solved the problem, now I have my war file
|
|
|
 |
|