[opencms-dev] OCSetup will not complete

Markus Daniel markus.daniel at synyx.de
Thu Oct 14 22:16:49 CEST 2004


Brian Fending wrote:

> Okay, added that string to the PATH environmental variable.
> 
> Java -version:
> ...
> java version "1.4.2_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
> Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
> ...
> 
> As soon as I start tomcat, the console issues:
> ...
> 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
>         at
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompil
> er(CompilerAdapterFactory.java:140)
> ...
> 
> I changed my startup script to:
> 
> ...
> %JAVA_HOME%\bin\java.exe -jar /
> -Dfile.encoding=ISO-8859-1 /
> -Duser.dir="C:\jakarta-tomcat-4.1.30" /
> "C:\jakarta-tomcat-4.1.30\bin\ /
> bootstrap.jar" start
> ...
> 
>  - to no effect.
> 
> 
> So: Is the next step a fresh install of everything? I'd hate to think
> I'm the first person to encounter this issue!
just use the startup.bat to start tomcat
this should work, you just have to set CATALINA_OPTS and JAVA_HOME

regards,
Markus



More information about the opencms-dev mailing list