Running Jsp pages and Servlet in Tomcat
Hello
After very long time i start developing web pages using JSp and servlet and tomcat as jsp/servlet engine so i forgot how to start what are environmental variable i have to set to run my jsp pages.
Through the user guide comes with the download of sdk i try to run the examples coming with this download i just all the environmental variable it specify but as i start tomcat it does not start.
Actually after installing the java sdk i install oracle 9i server+client on my system after this installation my tomcat is not running.
Please help me out what i need to do.
Operating system that i am using is XP professional.
Thank you.
I think oracle comes with a JDK itself, and oracle 9i will probably come with a 1.4.2 JDK while the latest tomcat requires Java 1.5. Set the JAVA_HOME environmental variable to your JDK 1.5 installation directory and try to start tomcat.
If you set the environmental variable via a command prompt, then yes you need to launch Tomcat from the same Command Prompt.
If, however you set the environment variable via the System then you don't need to use a Command Prompt to set it, and you can launch TC anyway you like.
Do this:
Start Menu > Settings > Control Panel > System.
Advanced Tab
Press the Environmental Variable button
Under System variables, press the New button
Add the CATALINA_HOME variable as stated above.
Repeat the last two steps to add the JAVA_HOME variable as stated above.
Find the 'Path' variable' and press the Edit button.
At the end of the variable, add the path to where java.exe is located for your JRE of choice.