« Return to Thread: Possible to assign different class loader for each web app with tomcat

[newbie] Unable to find a javac compiler;

by sakari.aaltonen :: Rate this Message:

Reply to Author | View in Thread

I would like to set up a Wiki and JSPWiki seems a likely candidate. So  
I am trying to get Tomcat 5.5 running. (The environment is Linux  
OpenSUSE 10.3.)

  I have got as far as to have the
    Sample "Hello, World" Application
servlet run. However, the JSP example always fails with

   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

However, JAVA_HOME looks all right (to me):
   sakari@mach:/tmp> ll $JAVA_HOME/lib
   total 28960
   -rw-r--r-- 1 root root 15153295 2007-03-16 12:01 ct.sym
   -rw-r--r-- 1 root root   145760 2007-09-22 01:43 dt.jar
   -rw-r--r-- 1 root root   206225 2007-09-22 01:43 htmlconverter.jar
   -rw-r--r-- 1 root root    18381 2007-03-16 12:01 ir.idl
   -rw-r--r-- 1 root root   388392 2007-09-22 01:43 jconsole.jar
   -rwxr-xr-x 1 root root     7056 2007-03-16 12:01 jexec
   -rw-r--r-- 1 root root      429 2007-03-16 12:01 orb.idl
   -rw-r--r-- 1 root root  1504171 2007-09-22 01:43 sa-jdi.jar
   -rw-r--r-- 1 root root 12158340 2007-09-22 01:43 tools.jar
   sakari@mach:/tmp>

(There is also JDK_HOME; it is equal to JAVA_HOME.)

Both java and javac work fine from the command line:
   sakari@mach:/tmp> java -version
   java version "1.6.0_01"
   Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
   Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
   sakari@mach:/tmp> javac -version
   javac 1.6.0_01
   sakari@mach:/tmp>


Why doesn't Tomcat find javac?


Thank you,
Sakari Aaltonen








---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Possible to assign different class loader for each web app with tomcat