Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setenv

Status
Not open for further replies.

crazyjava

Technical User
Oct 14, 2003
2
IN
Hey,
I just switched to a sun machine for java development from w2k.
I have downloaded a few java api add ons
However in the java docs its says i have to set the paths for these extras using a command called setenv.
Well i'm using solaris 8 and i cannot seem to find setenv.
Is there a another method for there.

thanxs
 
Hi,
The commands setenv,set,export are used to set the characteristics for environmental variables of the current shell.The setenv command is used to set env in csh while set command is common to all shells.Try to find out your default shell with the command:
env|grep SHELL
If it is ksh ,u can set the path as follows:-
CLASSPATH=/u01/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/opt/WebSphere/AppServer/lib/servlet.jar
export CLASSPATH
U can also enter these two commands in your $HOME/.profile file so that it gets executed everytime u log in to the system.

I hope this helps.....
 
thx
I'm using bash and sh
So how do i set up the paths
thx
 
Hey,
U can set the path as described below:-
bash-2.03# PATH=$PATH:/opt/bb
bash-2.03# export PATH
bash-2.03# echo $PATH
/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/opt/RICHPse/bin:/opt/bb

This adds /opt/bb to the PATH variable in bash....

See if this helps....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top