• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to set env  RSS feed

 
simplex du
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm seting env to connect to the oracle db.
how can i change the classpath?
please show me step by step,i'm freshman.
-thx in advance !
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set it as an environemnt variable.On the prompt, do either of the following
setenv CLASSPATH $CLASSPATH:/path_to_be_added
or
export CLASSPATH=$CLASSPATH:/path_to_be_added
To check CLASSPATH -
echo $CLASSPATH
 
ben munoz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To avoid setting this every time you login, you can also set this in your login script. If you have Redhat, you most likely use bash. Do this:
>cd ~
>ls -al
(there should be a .bash_profile file)
Edit the .bash_profile file to set your classpath environment variable, there will probably be a $PATH variable you can use as an example.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!