If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Setting Classpath Through Shell Script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-03, 06:37
prasanthik83 prasanthik83 is offline
Registered User
 
Join Date: Dec 2003
Posts: 20
Setting Classpath Through Shell Script

Hi !

I am trying to append the classpath to the existing classpath. I am
working on Redhat Linux 8.

I used the command:
export CLASSPATH=$CLASSPATH:/usr/../../.jar
But this jar file is not appended in the classpath. How to solve this problem???

Thanks in advance
Bye
Prasanthi
Reply With Quote
  #2 (permalink)  
Old 12-19-03, 12:13
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
Where are you using this command?

If you have a shell script that contains this command and you are running it, the new CLASSPATH will only be set in that shell (i.e. within the script).

If you want to have it set in your current shell, source your script rather than execute it.

e.g.

. yourScriptThatSetsClasspath

Damian
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On