You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Trevor Turton <Tr...@fnbcorporate.co.za> on 2004/08/03 11:01:53 UTC

Cocoon 2.1.5.1 build fails under Windows 98SE




I downloaded Cocoon 2.1.5.1 onto Windows 98SE with j2sdk1.4.1_01 installed
and ran the Cocoon build.bat, with results as shown in the console log
appended.  Build expects to find tools.jar in %JAVA_HOME%\JRE\lib\, but
it's actually in %JAVA_HOME%\lib\.  I tried copying all jars from lib into
JRE\lib and the build got a bit further and then failed.  The console log
includes an echo of %JAVA_HOME% and a dir of %JAVA_HOME%\lib\tools.jar to
show what's there.

Trevor Turton

D:\Downloads\Java\Cocoon\cocoon-2.1.5.1>build.bat
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name
Bad command or file name

Syntax error
Unable to locate tools.jar. Expected to find it in
D:\JAVA\J2SDK1.4.1_01\JRE\lib\tools.jar
Buildfile: build.xml

prepare:
======================================================================
                 Apache Cocoon 2.1.5.1 [1999-2004]
======================================================================
 Building with Apache Ant version 1.6.1 compiled on February 12 2004
----------------------------------------------------------------------
 Using build file D:\Downloads\Java\Cocoon\cocoon-2.1.5.1\build.xml
----------------------------------------------------------------------
 Compiler options:
   - debug ......... [on]
   - optimize ...... [on]
   - deprecation ... [off]
======================================================================

compile-core:
Compiling 1 source file to
D:\Downloads\Java\Cocoon\cocoon-2.1.5.1\build\cocoon-2.1.5.1\mocks

BUILD FAILED
D:\Downloads\Java\Cocoon\cocoon-2.1.5.1\tools\targets\compile-build.xml:49:
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: 5 seconds

D:\Downloads\Java\Cocoon\cocoon-2.1.5.1>echo %JAVA_HOME%
d:\java\j2sdk1.4.1_01

D:\Downloads\Java\Cocoon\cocoon-2.1.5.1>dir %JAVA_HOME%\lib\tools.jar

 Volume in drive D is DATA
 Volume Serial Number is 401A-DD91
 Directory of D:\Java\j2sdk1.4.1_01\lib

TOOLS    JAR     4,926,685  04-26-04  4:14p tools.jar
         1 file(s)      4,926,685 bytes
         0 dir(s)        4,601.28 MB free



The information transmitted in this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org