LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2004, 08:19 AM   #1
Hiper1
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Rep: Reputation: 0
Classpath


Hi

How do you setup a CLASSPATH in Linux.I am trying to load Tomcat 4 on linux and requires me to copy some files to my class path.

Please help
 
Old 11-25-2004, 08:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,209
Blog Entries: 1

Rep: Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064
When you start tomcat with ./startup.sh, it invoces a series of other scripts. Among them there is a setclasspath.sh that sets the standard CLASSPATH="$JAVA_HOME"/lib/tools.jar. Then catalina.sh change it to a more complex one. Check these scripts to find where you have to copy your files.
Regards
 
Old 11-25-2004, 08:51 AM   #3
Hiper1
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Original Poster
Rep: Reputation: 0
How do I setup the CLASSPATH for CATALINA_HOME??And where do I do this??
 
Old 11-25-2004, 09:18 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,209
Blog Entries: 1

Rep: Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064
Did you install tomcat? If yes then CATALINA_HOME=/path/to/tomcat (where /path/to/tomcat is the directory where tomcat is installed). You set this variable with:
Code:
export CATALINA_HOME=/path/to/tomcat
To start tomcat you must also
Code:
export JAVA_HOME=/path/to/java
Then the startup script (/path/to/tomcat/bin/startup.sh) run all the scripts needed to set the environment for tomcat to start. Among them is the CLASSPATH variable
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set CLASSPATH mohama Programming 8 12-17-2005 03:17 AM
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 04:26 PM
classpath of javac raj_verma Programming 1 07-27-2004 04:16 AM
Swing 1.1 or 1.2 and CLASSPATH jboo Linux - Software 0 02-07-2003 11:35 AM
ClASSPATH variable for Java oulevon Linux - General 1 02-28-2001 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration