LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2011, 08:53 AM   #1
uchmannuz
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Setting PATH Variable in Ubuntu


Hi everyone.
i installed java in my pc by running the following on the shell
./jdk-6u24-linux-i586.
i need to set the path to the bin directory and also a new environmental variable JAVA_HOME.
I need a little help here.
thanks
 
Old 02-18-2011, 09:54 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
You can add to your $PATH in ~/.profile
 
Old 02-18-2011, 10:01 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,836

Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
edit the .bash_profile for your user, add these two lines -- replace "/path/to" with the absolute path to your jdk instance.

Code:
export PATH=$PATH:/path/to/jdk_1.6.0/bin
export JAVA_HOME=/path/to/jdk_1.6.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to : setting PATH variable for TCL raju.mopidevi SUSE / openSUSE 18 02-22-2009 12:14 PM
Setting PATH variable Aigarzs Linux - Newbie 2 02-07-2008 03:27 PM
Trouble setting PATH variable krutten1986 SUSE / openSUSE 4 09-04-2006 02:21 PM
Help setting $PATH variable Nylex Linux - General 9 08-09-2003 12:44 PM
setting path variable shahrahulb Linux - General 2 07-30-2003 09:25 PM


All times are GMT -5. The time now is 06:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration