November 21, 2024, 10:33:45 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Questions about modifying bash_profile values, export, etc.  (Read 9857 times)

Offline sethbw

  • New Member
  • Posts: 1
Questions about modifying bash_profile values, export, etc.
« on: April 20, 2012, 07:00:44 PM »
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: [Select]
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?
Code: [Select]
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin
And finally this is how it is currently setup in my ~/.bash_profile:

Code: [Select]
PATH=$PATH:$HOME/bin
export PATH

export PATH=/u01/app/oracle/product/fmw/Oracle_WT1/instances/instance1/bin/:$PATH


Thanks,
s