Howdy,
See Mr. Morelock's reply: you need the JDK, not the JRE, as your
$JAVA_HOME.  And if you have a lot of JSPs, consider using Jikes at
runtime or JSPC to pre-compile your JSPs, as Javac has a memory leak
(see the README file).

To The Powers That Be: We have to put this question in a FAQ somewhere
;)  

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Gordon L. Mc Lellan [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 07, 2002 12:05 AM
>To: [EMAIL PROTECTED]
>Subject: tomcat probs
>
>Greetings...
>
>I'm having a "newbie" related issue with tomcat, but I feel it is more
>related to the J2RE than to tomcat itself.
>
>I have tried installing tomcat on 3 systems today, and although the
install
>appears to be successfull, whenever I try to execute any of the
enclosed
>JSP
>examples, I get a huge (long) exception error
>
>I haven't been able to find this exact error on google, nor on the
jakarta
>website's faq.
>
>The systems I've tried it on:
>
>fresh redhat 7.3, x86, (everything installed [3 cd's worth! {bad idea,
i
>know}])
>older redhat 7.2, x86, (very spartan install)
>win xp pro, x86, (too much junk to count)
>
>I've tried j2re version's 1.3.1 and 1.4.0 on all three systems.
>
>On the linux systems, j2re installed itself into /usr/java/jre-1.3.1_03
>(and
>something similar for 1.4), which I symlinked to /usr/java/jdk for the
>JAVA_HOME env varible, as well as the similar line in the tomcat3.conf
file
>
>On the windows box, I told j2re to install to c:\java\jdk and tomcat
>unzipped into c:\java\tomcat ... I also did a set
JAVA_HOME="c:\java\jdk"
>prior to running startup.bat just to be sure.
>
>Any thoughts I what I'm doing wrong?
>
>Thanks in advance,
>
>Gordon
>
>exception (as reported by tomcat 4):
>javax.servlet.ServletException: sun/tools/javac/Main
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>   (snip)
>   at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:110
>7
>)
>   at java.lang.Thread.run(Unknown Source)
>
>root cause (as reported by tomcat 4):
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at
>org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java
:136
>)
>   (snip)
>   at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:110
>7
>)
>   at java.lang.Thread.run(Unknown Source)
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to