Results 1 to 1 of 1
  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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,

    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

    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
    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

    Thanks,
    s




 

 

Similar Threads

  1. Replies: 0
    Last Post: 02-16-2012, 07:00 PM
  2. Policy on Homework questions?
    By red in forum Forum Assistance
    Replies: 4
    Last Post: 11-29-2011, 07:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,541
Threads: 3,912
Posts: 9,423
Top Poster: Fred (1,486)
Welcome to our newest member, permeno34

» Links



Powered by vBadvanced CMPS