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.

[680 byte] By [crazybird_2005a] at [2007-10-2 21:36:08]
# 1
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.
gimbal2a at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
also set the CATALINA_HOME=C:\tomcat5
kssra at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hello,Thank you for the reply. is it require in command window in which i run bat file to set the environmental variable in the same window i need to start the tomcat.I am sorry actually i am new for the xp plateform also.Please help me.
crazybird_2005a at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hello,Thank you for the mail. Is it necessary that i have to run the tomcat in the same window in which i set the environmental variable.Please help meThank you
crazybird_2005a at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

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.

stevejlukea at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hello,Thank you for the reply. One more thing i want to know i installed both JSDK1.5 and JavanetbeanIDE now both come with JRE .Path of which JRE i need to set.I am very much thankful for all your help.Thank you
crazybird_2005a at 2007-7-14 0:50:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...