aspose file tools*
The moose likes Servlets and the fly likes Servlet comilation without JSDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet comilation without JSDK" Watch "Servlet comilation without JSDK" New topic
Author

Servlet comilation without JSDK

arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
i have tomacat installed. its working fine since i am able to start and stop though haven't registered any application. i have jdk1.1.8 installed. I have a servlet to be registered in tomcat, but servlet wouldn't compile. gives error javax.servlet not found. I understand that i need to download JSDK for that. what confuses me is that tomcat has its own servlet/JSP container. and servlet.jar is in my classpath. So do i still need to download JSDK. pls. explain
------------------
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Forget about the JSDK!
Download the latest version of TOMCAT.
If you prefer virtual hosts, they are supported by this pre-release version:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m3/bin/

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
If you are getting "error javax.servlet not found." it is just a classpath problem. Never mix old JSDK with newer version of Tomcat - I spent days tracking down a problem due to this.
If you are stuck with JDK 1.1.8 - don't try Tomcat 4.0 - I think it requires JDK 1.2 or higher
Bill
arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
thanks Tony and Bill
I downloaded tomcat from the site given by Tony. For JDK, i could not identify the right file. There was JDK 1.1, but there was no JDK 1.2 though there was Java RunTime 1.2, JRE 1.3, and Java 2 Standard edition 1.2, Java 2 Standard Edition 1.3. Which one shall i download. Tony was referring to JSDK, is this JSDK same as i mentioned above ie Java 2 Standard Edition. or is it Java Servlet Development kit.
thanks
arpit
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Go with Java 2 Standard Edition 1.3. Sun used to refer to the JDK, then they switched to SDK 1.3 and Java 2 Standard Edition so you will see these terms all mixed up.
Some pages on Sun sites (and us old-timers) still refer to JDK.
There are also a bunch of acronyms floating around for the old Java Web Server, Java Web Server Development Kit and other permutations....
Bill
arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
Bill
i have installed TOMCAT and jdk1.3. DOS window , where i gave startup command gives message "Starting Tomcat in new window". but tomcat window disappears. how do i solve this problem.
thanks for all your help
arpit
arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
I can start and stop tomcat properly now. I can also see TOMCAT window. Problem in setting up my TOMCAT_HOME and JAVA_HOME.
But not able to see http://localhost:8080/examples/jsp/index.html page. says Page can not be displayed.
thanks
arpit
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
If you are using MSIE browser, you need to turn off the "friendly" messages so you can get more informative messages.
tools -> internet Options ->advanced
make sure "friendly HTTP error messages" is not checked.
Bill
arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
thanks Bill
I am able to run tomcat and able to display the JSPs and servlets.
thanx a lot
arpit
 
 
subject: Servlet comilation without JSDK