Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: PATH to java in X11

From: Mumia W.. <paduille.4061.mumia.w+nospam(at)earthlink.net>
Date: Sun Sep 30 2007 - 22:36:07 EDT


On 09/30/2007 06:39 PM, Henrique G. Abreu wrote:
> I've created /etc/environment file like this
> JAVA_HOME="/opt/jdk1.5.0_12"
> export JAVA_HOME
>
> PATH="$PATH:$JAVA_HOME/bin"
> export PATH
>

Don't set the PATH this way. Specify the path list fully:

JAVA_HOME=/opt/jdk1.5.0_12
PATH=/usr/bin:/bin:/usr/bin/X11:/usr/games:$JAVA_HOME/bin export PATH JAVA_HOME

Find out your current PATH before and add :$JAVA_HOME/bin to the end of it.

> The first time I started and logged into gdm, it failed.
> Then I went to /etc/ and changed environment permissions.
> Ok, I managed to log in, but PATH doesn't have /opt/jdk1.5.0_12/bin
> I can't run a program that uses java from the menu link
> Only if a open gnome-terminal with any user and call the program, it works.
>
> I know its possible to make a "workaround" starting everything thought
> terminal, but it's horrible!
> Or go to "/usr/bin" and "ln -s ..." everything in JAVA_HOME/bin
> but that is not the point, I MUST know how to set PATH variable because its
> ridiculous. I no windows user.
>
> Thanks,
>

Both my Sarge and Etch installations have /etc/environment. You might not be running Debian at all.

If it's obvious that /etc/environment is being ignored, you can place this line in ~/.bashrc

. /etc/environment

Do you need help?X

Or you can just place the PATH and JAVA_HOME adjustments directly into ~/.bashrc.

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Mon Oct 1 01:33:54 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:05:01 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library