LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2008, 02:41 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
.bashrc personal environment variable


I need to use on a local user (Centos5) personal environment variables for(JAVA). The application I use has its own JAVA.
I tried to extend the user profile by editing the ~/.bashrc with:

export JAVA_HOME=/application/JAVA/jdk1.6.0_ibm
export PATH="$JAVA_HOME/bin:$PATH"
export APP_HOME=/application/distibution


#End ~/.bashrc
~

Is it possible to find out if those variables are loaded? properly??
Make those lines sense anyway??
 
Old 04-11-2008, 03:12 AM   #2
stanciu
LQ Newbie
 
Registered: Jan 2008
Distribution: Mandriva, Fedora, SLC
Posts: 3

Rep: Reputation: 0
try 'echo $JAVA_HOME' to see if the variable was exported
then try 'which java' to see if the path is the one defined in .bashrc

if it does not work try replacing in your .bashrc file the second line with PATH=$PATH:$JAVA_HOME/bin.....although your way should work too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up environment variables for j2se and j2ee on linux in .bashrc vitalstrike82 SUSE / openSUSE 1 03-30-2008 07:26 AM
create a variable in the .bashrc file in my home directory coldbeerz Linux - Newbie 2 12-14-2007 09:48 AM
bashrc variable ovince Programming 1 04-25-2007 07:35 AM
how to add environment variable to .bashrc file hasan Linux - General 7 10-03-2003 04:43 PM
how to add environment variable to .bashrc file? hasan Red Hat 1 10-03-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration