On Sun, 30 Sep 2007 20:39:28 -0300 "Henrique G. Abreu" <[EMAIL PROTECTED]> wrote:
> I've created /etc/environment file like this > JAVA_HOME="/opt/jdk1.5.0_12" > export JAVA_HOME There's no need to export the variables defined in /etc/environment... > PATH="$PATH:$JAVA_HOME/bin" > export PATH ...nor is to set them in $PATH. Try creating an /etc/environment file consisting only JAVA_HOME=/opt/jdk1.5.0_12 It should work from then on. > 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. So when you type for example [EMAIL PROTECTED]:~$ java example the program "example" starts? Then it works. Menu links can be edited to include the full path to java like Exec=java example ==> Exec=/opt/jdk1.5.0_12/bin/java example This has to be done only once. > 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, > > On 9/30/07, Henrique G. Abreu <[EMAIL PROTECTED]> wrote: > > > > In my /etc there is no environment file > > Must I create one? > > > > Thanks > > > > On 9/30/07, Nyizsnyik Ferenc <[EMAIL PROTECTED] > wrote: > > > > > > On Sun, 30 Sep 2007 12:01:57 -0300 > > > "Henrique G. Abreu" < [EMAIL PROTECTED]> wrote: > > > > > > > I've read many forums and threads in debian lists, but no > > > > solution worked to me. > > > > > > > > I've downloaded and unpacked to /opt the jdk1.5.0_12 > > > > I didn't used apt-get because I need this specific version. > > > > > > > > Then, I need to set java environment variables globally > > > > And include /opt/jdk1.5.0_12/bin to PATH > > > > > > > > I inserted in /etc/bash.bashrc: > > > > export PATH=$PATH:/opt/jdk1.5.0_12/bin > > > > > > > > it works to all terminals, but don't to X11 > > > > for example: I can't start Azureus from menu link > > > > > > > > Then I tried /etc/profile > > > > but it didn't work either > > > > > > > > thanks, > > > > > > I have the following line in /etc/environment: > > > JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun > > > > > > I hope this helps. > > > > > > -- > > > Szia: > > > Nyizsa. > > > > > > ---------------------------------------------------------------------- > > > Find out how you can get spam free email. > > > http://www.bluebottle.com/tag/3 > > > > > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact > > > [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Henrique G. Abreu > > [EMAIL PROTECTED] > > > > > -- Szia: Nyizsa. ---------------------------------------------------------------------- Finally - A spam blocker that actually works. http://www.bluebottle.com/tag/4 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]