LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-04-2004, 12:50 PM   #1
Dynapen
LQ Newbie
 
Registered: Aug 2004
Location: Kansas City
Distribution: SuSE 9.3 Pro
Posts: 1

Rep: Reputation: 0
Permanently Setting the Java_Home


I want to permanently my "JAVA_HOME" (for a windows tem) to the PATH for my user (or all users if that's easier becuase I am the only one) in Fedora (Core 2). But I am a extreme newbie and can't seem to figure out how to add it so that it's always there. I am trying to install eclipse, which requries the jdk to run........

I have tried doing this throug the terminal which allows me to set it for that terminal session, but it dies after that and Eclipse can't find it when i do get it set.......

I have heard about editing the .bashrc file but when I try to look at it through the GUI I can't find the file in the file browser. And when I find it in the terminal, I can't figure out how to open it to edit it.

This is becoming very frustrating so any help would be appreciated. I know this should be a easy task so I don't understand what part I am not doing correctly to get it to work.

Thanks
 
Old 08-04-2004, 01:52 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Files beginning with a . (dot) in Linux are hidden files so your GUI will not see them probably. There's undoubtedly an option somewhere in your file browser to view hidden files. The easiest thing to do though is just edit it from the command line. I suggest you use pico as it is a newbiew friendly command line text editor. Type

pico .bashrc

from the command line, edit the file, then type CTRL+o to save and CTRL+x to exit.

oh ... if you want to add the JAVA_HOME to all users' paths, then edit your /etc/profile in the same way.
 
Old 08-04-2004, 01:53 PM   #3
FarAway
LQ Newbie
 
Registered: Jul 2004
Posts: 18

Rep: Reputation: 0
you edit the file /etc/profile , append :/path/to/java/bin (eg :/usr/java/j2sdk1.4.2_03/bin) to every PATH= .

hope that help... ^_^
 
  


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
problem setting JAVA_HOME pkpro1 Linux - General 5 11-25-2007 08:49 AM
Setting the xrandr setting permanently dazdaz Linux - Hardware 2 11-24-2005 01:57 AM
setting the default GW permanently hcclnoodles Linux - Networking 6 09-15-2005 09:38 AM
setting JAVA_HOME gauravbagga Linux - Newbie 2 03-04-2005 09:17 PM
Opera Startup + Setting JAVA_HOME l2g Linux - Newbie 2 03-07-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:52 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
Open Source Consulting | Domain Registration