LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   PATH in Gnome (https://www.linuxquestions.org/questions/debian-26/path-in-gnome-370629/)

McCloud 10-07-2005 09:14 AM

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

mrcheeks 10-07-2005 08:19 PM

try adding it to /etc/environment file.

McCloud 10-11-2005 12:09 PM

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


All times are GMT -5. The time now is 12:21 PM.