LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-07-2005, 09:14 AM   #1
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
PATH in Gnome


Hello,

I need to add a JAVA_HOME environment variable pointing to my Java directory and an extra entry in PATH pointing to my Java/bin directory. I have done this by adding these entries to my users .bashrc file (it is user specific, Java is installed my user's home-dir and I only want to add these settings for this specific user). This works when I open a terminal and start a Java program, but I can't start a Java program from within Gnome using a launcher (for example when starting my Azureus BitTorrent client). I added the JAVA_HOME and PATH settings to my users .bash_profile file, but this doesn't work either. Next I added the settings to my '/etc/profile' file, but again, Java is only accessible from within a shell.

Where should I specify JAVA_HOME and my extra PATH entry so I will be able to use Java inside Gnome?? I wan't to have my Java directory in the user's home-dir (so I don't want a standard Debian Java Package).
 
Old 10-07-2005, 08:19 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
try adding it to /etc/environment file.
 
Old 10-11-2005, 12:09 PM   #3
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Original Poster
Rep: Reputation: 30
I tried that and it didn't work. I also tried to put the PATH in my /etc/profile and /etc/gdm/PreSession/Default, but that doesn't work either.

Does anyone know how I can make this work??
 
  


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
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
changing the path of GNOME configuration files ges Red Hat 0 06-17-2005 11:55 AM
$PATH different in gnome-terminal racarter Debian 5 05-18-2005 06:22 AM
Default gnome save path mhochman Linux - Software 6 05-25-2004 10:36 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:02 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