Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Tomcat  RSS feed

Kannan BLR
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to set the Envoronment variable in Windows 98.

I had set path & classpath in DOS prompt as,

set path=%path%;D:\jdk1.4\bin
set classpath=%classpath%;D:\jdk1.4\lib

I don't know How to set Java_home & catalina_home in windows 98.

Pls any one guide me. then one more Questions.

In my friend P.C, Some jsp Example is running in tomcat server properly. but servlet program is not working in tomcat server and I can't compile servlet file in DOS Prompt also.
shall I want to set any classpath for servlet?

Pls Kindly clarify my doubts as soon as possible.

Ulf Dittmer
Posts: 42972
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few points that may help you get started:

- Adding the JDK lib directory to the classpath is not going to do much, because it contains jar files, which have to be added explicitly one by one (unless you're using the lib directory to store your own loose class files, which is not a good idea).

- Setting java_home and catalina_home is no different from setting path and classpath. Either you set them on the command line (as you have done with the others), where you will lose them when you close the window, or more permanently under the extended system settings in the workstation properties (may be named differently on Win98).

- You didn't mention what kind of problem you have compiling servlets, but for every compilation you need to include the referenced classes in your classpath. So in order to compile servlets, you need to include the servlet API jar file, which you'll find in the Tomcat/common/lib directory.

- On an unrelated note, this site has a naming policy, and your displayed name does not conform to it; please correct that.
[ August 22, 2005: Message edited by: Ulf Dittmer ]
vidhyasagar reddy
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Control panel/system-> advanced->
Environment variables

in user variables
click new and give JAVA_HOME in variable name and drive/jdk1.4 variable value

again click new
give CATALINA_HOME in variable name and drive/tomcat

now you can run the jsps and servlets

if u want to compile servlets in command prompt

u have to set the jar file for compiling servlets

got to command

and use this instruction

set classpath=%classpath%;.; (tomcatfoler)/common/lib/servlet-api.jar
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!