Linux in General > Linux Development & Programming

Questions about modifying bash_profile values, export, etc.

(1/1)

sethbw:
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 -p /tmp/my_ear
cd /tmp/my_ear
jar -xvf $WEBCENTER_HOME/archive/applications/webcenter.ear

mkdir war
cd war
jar -xvf ../spaces.war

--- End code ---


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: ---/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin
--- End code ---

And finally this is how it is currently setup in my ~/.bash_profile:


--- Code: ---PATH=$PATH:$HOME/bin
export PATH

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

--- End code ---


Thanks,
s

Navigation

[0] Message Index

Go to full version