Results 1 to 2 of 2
My end goal: be able to use jar command from any directory i choose. I am trying to follow instructions for unzipping a war using the jar command, Code: mkdir ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-20-2012 #1
- Join Date
- Apr 2012
Questions about modifying bash_profile values, export, etc.
My end goal: be able to use jar command from any directory i choose.
I am trying to follow instructions for unzipping a war using the jar command,
mkdir -p /tmp/my_ear cd /tmp/my_ear jar -xvf $WEBCENTER_HOME/archive/applications/webcenter.ear mkdir war cd war jar -xvf ../spaces.war
I have been googling all day how to update the ~/.bash_profile using export $PATH...
Can someone please help walk me through the correct steps to do this? I am not sure if the path should point to the JRE, the JDK or both, but more importantly I just am new to modifying the .bash_profile. I have made a couple of my own aliases for jumping to commonly used directories, but that is about it so far!
From what I have found, it looks like this will be the path I use when updating the bash_profile - how can I confirm?
PATH=$PATH:$HOME/bin export PATH export PATH=/u01/app/oracle/product/fmw/Oracle_WT1/instances/instance1/bin/:$PATH
Last edited by sethbw; 04-20-2012 at 07:44 PM.
- 04-21-2012 #2
As far as I can see, jar should be in /usr/bin which should already be in your path.
You can view your current path by running the commandCode:
If the which command doesn't find the program, you can try the following
sudo updatedb locate jar
If the locate command finds jar and if it installed then there is no reason it shouldn't, a more elegant solution may be to create a symlink in /usr/binCode:
sudo ln -s /usr/bin/jar /path/to/jar
PATH=/u01/app/oracle/product/fmw/Oracle_WT1/instances/instance1/bin/:$PATH:$HOME/bin:/path/to/jar export PATH