Idea and Tomcat

hi,
I'm using idea to run my Web application within tomcat 4.1
The applicationi is deployed fine but when I want to use it from the web browse the following error message is displayed:

Exception compiling 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

The problem is that I have the JAVA_HOME/lib/tools.jar in the classpath.
Here is the command which starts the Tomcat:

C:/java/java1.4.2/j2sdk1.4.2\bin\java -DIafMOD=/wsad/www -Dcom.deere.rc.reporter=generic -DIafConfigSuffix=Local -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl -Djava.endorsed.dirs=C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\bin;C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\common\lib -Dcatalina.base=C:\IDE\idea1117\system\tomcat_Elvis_1628303 -Dcatalina.home=C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14 -Djava.io.tmpdir=C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\temp -Dfile.encoding=windows-1252 -classpath "C:\java\java1.4.2\j2sdk1.4.2\lib\tools.jar;C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\bin\bootstrap.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\charsets.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\jce.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\jsse.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\plugin.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\rt.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\sunrsasign.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\dnsns.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\localedata.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\sunjce_provider.jar;C:\dev\elvis\modules\Elvis\Web Content\WEB-INF\classes;C:\dev\elvis\modules\IAF Configuration Framework\bin;C:\dev\elvis\modules\Resources\deere\was5\IafUtility.jar;C:\dev\elvis\modules\Resources\servlet\2.3\servlet.jar;C:\dev\elvis\modules\Resources\apache\junit\junit.jar;C:\dev\elvis\modules\IAF Log Framework\bin;C:\dev\elvis\modules\Resources\javax\activation.jar;C:\dev\elvis\modules\Resources\javax\mailapi.jar;C:\dev\elvis\modules\SourceWorks\bin;C:\dev\elvis\modules\Resources\servlet\2.2\servlet.jar;C:\dev\elvis\modules\SourceWorks Application\bin;C:\dev\elvis\modules\Resources\apache\commons-logging-1.0.2\commons-logging-api.jar;C:\dev\elvis\modules\Resources\deere\was5\IafJdbcConnectionFramework.jar;C:\dev\elvis\modules\Resources\deere\was5\IafJimsiFramework.jar;C:\dev\elvis\modules\Resources\sap\WAS\3.5\ivjsap35.jar;C:\dev\elvis\modules\Resources\javax\jdbc2_0-stdext.jar;C:\dev\elvis\modules\SourceWorks Tag 1.2\bin;C:\dev\elvis\modules\Resources\servlet\jstl\1.03\jstl.jar;C:\dev\elvis\modules\Resources\servlet\jstl\1.03\standard.jar;C:\dev\elvis\modules\WebWorks Framework\bin;C:\dev\elvis\modules\Resources\javax\mail.jar;C:\dev\elvis\modules\Resources\other\oreilly.jar;C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\common\lib\jasper-runtime.jar;C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\common\lib\servlet.jar;C:\dev\elvis\modules\Resources\jdbc\mysql\mysql-connector-java-3.0.9-stable-bin.jar;C:\IDE\idea1117\lib\idea_rt.jar" -Didea.launcher.port=7539 -Didea.launcher.library=C:\IDE\idea1117\bin\breakgen.dll com.intellij.rt.execution.application.AppMain org.apache.catalina.startup.Bootstrap start

As we can see the tools.jar is in the classpath.
Can somebody help me with this?
I'm using idea 1117

thx in advance.

1 comment

You are only 34 builds off. Try upgrading first.

--
Norris Shelton
Sun Certified Java Programmer


"Mihai Jurca" <mihaijurca@yahoo.com> wrote in message
news:28824980.1076416502751.JavaMail.itn@is.intellij.net...
hi,
I'm using idea to run my Web application within tomcat 4.1
The applicationi is deployed fine but when I want to use it from the web
browse the following error message is displayed:

Exception compiling 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

The problem is that I have the JAVA_HOME/lib/tools.jar in the classpath.
Here is the command which starts the Tomcat:

C:/java/java1.4.2/j2sdk1.4.2\bin\java -DIafMOD=/wsad/www -Dcom.deere.rc.repo
rter=generic -DIafConfigSuffix=Local -Dorg.apache.commons.logging.LogFactory
=org.apache.commons.logging.impl.LogFactoryImpl -Djava.endorsed.dirs=C:\dev\
elvis\servers\jakarta-tomcat-4.1.24-LE-jdk14\bin;C:\dev\elvis\servers\jakart
a-tomcat-4.1.24-LE-jdk14\common\lib -Dcatalina.base=C:\IDE\idea1117\system\t
omcat_Elvis_1628303 -Dcatalina.home=C:\dev\elvis\servers\jakarta-tomcat-4.1.
24-LE-jdk14 -Djava.io.tmpdir=C:\dev\elvis\servers\jakarta-tomcat-4.1.24-LE-j
dk14\temp -Dfile.encoding=windows-1252 -classpath
"C:\java\java1.4.2\j2sdk1.4.2\lib\tools.jar;C:\dev\elvis\servers\jakarta-tom
cat-4.1.24-LE-jdk14\bin\bootstrap.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\c
harsets.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\jce.jar;C:\java\java1.4.2\j
2sdk1.4.2\jre\lib\jsse.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\plugin.jar;C
:\java\java1.4.2\j2sdk1.4.2\jre\lib\rt.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\
lib\sunrsasign.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\dnsns.jar;C:\jav
a\java1.4.2\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\java\java1.4.2\j2sdk1.4.2\
jre\lib\ext\localedata.jar;C:\java\java1.4.2\j2sdk1.4.2\jre\lib\ext\sunjce_p
rovider.jar;C:\dev\elvis\modules\Elvis\Web
Content\WEB-INF\classes;C:\dev\elvis\modules\IAF Configuration
Framework\bin;C:\dev\elvis\modules\Resources\deere\was5\IafUtility.jar;C:\de
v\elvis\modules\Resources\servlet\23\servlet.jar;C:\dev\elvis\modules\Resour
ces\apache\junit\junit.jar;C:\dev\elvis\modules\IAF Log
Framework\bin;C:\dev\elvis\modules\Resources\javax\activation.jar;C:\dev\elv
is\modules\Resources\javax\mailapi.jar;C:\dev\elvis\modules\SourceWorks\bin;
C:\dev\elvis\modules\Resources\servlet\2.2\servletjar;C:\dev\elvis\modules\S
ourceWorks
Application\bin;C:\dev\elvis\modules\Resources\apache\commons-logging-1.0.2\
commons-logging-api.jar;C:\dev\elvis\modules\Resources\deere\was5\IafJdbcCon
nectionFramework.jar;C:\dev\elvis\modules\Resources\deere\was5\IafJimsiFrame
work.jar;C:\dev\elvis\modules\Resources\sap\WAS\3.5\ivjsap35.jar;C:\dev\elvi
s\modules\Resources\javax\jdbc2_0-stdext.jar;C:\dev\elvis\modules\SourceWork
s Tag
1.2\bin;C:\dev\elvis\modules\Resources\servlet\jstl\1.03\jstl.jar;C:\dev\elv
is\modules\Resources\servlet\jstl\1.03\standard.jar;C:\dev\elvis\modules\Web
Works
Framework\bin;C:\dev\elvis\modules\Resources\javax\mail.jar;C:\dev\elvis\mod
ules\Resources\other\oreilly.jar;C:\dev\elvis\servers\jakarta-tomcat-4.1.24-
LE-jdk14\common\lib\jasper-runtime.jar;C:\dev\elvis\servers\jakarta-tomcat-4
.1.24-LE-jdk14\common\lib\servlet.jar;C:\dev\elvis\modules\Resources\jdbc\my
sql\mysql-connector-java-3.0.9-stable-bin.jar;C:\IDE\idea1117\lib\idea_rt.ja
r" -Didea.launcher.port=7539 -Didea.launcher.library=C:\IDE\idea1117\bin\bre
akgen.dll com.intellij.rt.execution.application.AppMain
org.apache.catalina.startupBootstrap start

As we can see the tools.jar is in the classpath.
Can somebody help me with this?
I'm using idea 1117

thx in advance.



0

Please sign in to leave a comment.