PDA

View Full Version : Be sure to set environment variables to root



fanidm
23-Jun-2014, 04:08
Hi friends,
As I can set starting the java environment to the user root. Thanks for your help.

malcolmlewis
23-Jun-2014, 05:03
On Mon 23 Jun 2014 03:14:01 AM CDT, fanidm wrote:


Hi friends,
As I can set starting the java environment to the user root. Thanks for
your help.




Hi
If you install java from the SLE repos it will set the environment
variables, for example on my 64bit system;


# env |grep JAVA
JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java


--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

fanidm
23-Jun-2014, 05:19
Hello friend,
In that file I can add these references to the root user and other users of the operating system. thanks

malcolmlewis
23-Jun-2014, 05:53
On Mon 23 Jun 2014 04:24:01 AM CDT, fanidm wrote:


Hello friend,
In that file I can add these references to the root user and other users
of the operating system. thanks




Hi
You can add the variables into a users home directory in the .profile
and export;


export JAVA_BINDIR=/usr/lib64/jvm/java/bin
export JAVA_HOME=/usr/lib64/jvm/java
export JAVA_ROOT=/usr/lib64/jvm/java

Adjust paths as required to your java install.

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

fanidm
23-Jun-2014, 06:01
Friend,
Thanks.