Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TomCat and j2ee

Status
Not open for further replies.

alphajava

Programmer
Mar 30, 2005
17
US


I installed latest version of j2ee
(file:j2eesdk-1_4_01_2005Q1-windows.exe), and then Tomcat 5.5.7.
When I run startup.bat in Tomcat I get this error:
"This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page."
Can I use j2ee with Tomcat or do I have to un-install j2ee and install j2se? or what is the problem?

Also, another issue: when I try to compile a servlet by typing at the command: javac myservlet.java
I get errors about unresolved symbols (HttpServlet class).
I made variable:JAVA_HOME to be: C:\sun\appserver\jdk, so what jar files am I missing?
My path is: C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\bin
My CLASSPATH is: .;C:\Program Files\Apache Software Foundation\Tomcat 5.5\server

I am using Winxp.

I am new to java and this is my first experience.
Thanks for any help.
 
J2EE is an extension to the J2SE - you must have J2SE to run Tomcat (and best to to have Java 1.5/5 to run tomcat 5.5).

Errors ? Post them ...

--------------------------------------------------
Free Database Connection Pooling Software
 


Thanks. I installed j2se and the Tomcat is working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top