tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Garala" <...@electrosoft-inc.com>
Subject RE: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
Date Tue, 28 Oct 2003 21:14:36 GMT
Make sure u have $JDK/lib/tools.jar in your classpath

-----Original Message-----
From: Gerald Stampfel [mailto:e0125452@student.tuwien.ac.at] 
Sent: Tuesday, October 28, 2003 4:11 PM
To: tomcat-user@jakarta.apache.org
Subject: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is
not on the classpath.


Hi folks,

i got the following error message:

----------------------------------------------------------------------------
--

2003-10-28 21:58:08 Info: Compile:
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
/index_jsp.java
 
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-to
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
-INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/je
tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/
webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j
ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.
0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg
ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm
ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e
cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr
um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta
-oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jak
arta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/li
b/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jet
speed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/l
og4j-1.2.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mai
l.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.
jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;
/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programm
e/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/ja
karta-tomcat/webapps/jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakar
ta-tomcat/webapps/jetspeed/WEB-INF/lib/xml-apis.jar;C:/Programme/jakarta-tom
cat/shared/classes/;C:/Programme/jakarta-tomcat/common/classes/;C:/Programme
/jakarta-tomcat/common/endorsed/xercesImpl.jar;C:/Programme/jakarta-tomcat/c
ommon/endorsed/xmlParserAPIs.jar;C:/Programme/jakarta-tomcat/common/lib/acti
vation.jar;C:/Programme/jakarta-tomcat/common/lib/ant.jar;C:/Programme/jakar
ta-tomcat/common/lib/commons-collections.jar;C:/Programme/jakarta-tomcat/com
mon/lib/commons-dbcp.jar;C:/Programme/jakarta-tomcat/common/lib/commons-logg
ing-api.jar;C:/Programme/jakarta-tomcat/common/lib/commons-pool.jar;C:/Progr
amme/jakarta-tomcat/common/lib/jasper-compiler.jar;C:/Programme/jakarta-tomc
at/common/lib/jasper-runtime.jar;C:/Programme/jakarta-tomcat/common/lib/jdbc
2_0-stdext.jar;C:/Programme/jakarta-tomcat/common/lib/jndi.jar;C:/Programme/
jakarta-tomcat/common/lib/jta.jar;C:/Programme/jakarta-tomcat/common/lib/mai
l.jar;C:/Programme/jakarta-tomcat/common/lib/naming-common.jar;C:/Programme/
jakarta-tomcat/common/lib/naming-factory.jar;C:/Programme/jakarta-tomcat/com
mon/lib/naming-resources.jar;C:/Programme/jakarta-tomcat/common/lib/servlet.
jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\activation.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\castor-0.9.3.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-beanutil
s-1.4.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-collecti
ons-2.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-configur
ation-1.0-dev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-dbcp-1.0
-dev-20020806.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-lang-1.0
.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-logging-
1.0.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-pool-1.0
.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\ecs-1.4.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\fulcrum-3.0-b2-d
ev.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\hsqldb.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jakarta-oro-2.0.
6.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jakarta-regexp-1
.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jcs-1.0-dev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jdbc-se2.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jetspeed-1.4-b4.
jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\log4j-1.2.6.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\mail.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\ojb-0.7.343.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\soap.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\stratum-1.0-b4-d
ev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\torque-3.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\turbine-2.2.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\uddi4j.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\velocity-1.3.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\village-1.5.3.ja
r
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xalan-2.3.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xerces-2.0.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xercesImpl.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xml-apis.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\activation.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\castor-0.9.3.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-beanutil
s-1.4.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-collecti
ons-2.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-configur
ation-1.0-dev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-dbcp-1.0
-dev-20020806.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-lang-1.0
.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-logging-
1.0.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\commons-pool-1.0
.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\ecs-1.4.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\fulcrum-3.0-b2-d
ev.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\hsqldb.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jakarta-oro-2.0.
6.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jakarta-regexp-1
.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jcs-1.0-dev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jdbc-se2.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\jetspeed-1.4-b4.
jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\log4j-1.2.6.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\mail.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\ojb-0.7.343.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\soap.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\stratum-1.0-b4-d
ev.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\torque-3.0.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\turbine-2.2.jar
     cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\uddi4j.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\velocity-1.3.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\village-1.5.3.ja
r
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xalan-2.3.1.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xerces-2.0.2.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xercesImpl.jar
 
cp=C:\Programme\jakarta-tomcat\webapps\jetspeed\WEB-INF\lib\xml-apis.jar
     cp=C:\Programme\jakarta-tomcat\shared\classes
     cp=C:\Programme\jakarta-tomcat\common\classes
     cp=C:\Programme\jakarta-tomcat\common\endorsed\xercesImpl.jar
     cp=C:\Programme\jakarta-tomcat\common\endorsed\xmlParserAPIs.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\activation.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\ant.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\commons-collections.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\commons-dbcp.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\commons-logging-api.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\commons-pool.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\jasper-compiler.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\jasper-runtime.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\jdbc2_0-stdext.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\jndi.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\jta.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\mail.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\naming-common.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\naming-factory.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\naming-resources.jar
     cp=C:\Programme\jakarta-tomcat\common\lib\servlet.jar
     work dir=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed
    srcDir=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed
    include=index_jsp.java
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

----------------------------------------------------------------------------
--

JAVA_HOME points to the correct JDK.

I read that tools.jar has to be on my classpath and indeed this file is not
listed above. 

So i have to get tools.jar in my classpath, true ? How can i accomplish this
?

Thanks!

-
Gerald S.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message