-   SUSE / openSUSE (
-   -   what is the java settings on opensuse (

skzende 07-02-2010 04:19 AM

what is the java settings on opensuse
i am new to linux also opensuse11.2 recently i am install this version.
i am java programmer. so i want install eclipse on linux. so i want to know that how to set a environment variable of java on linux and eclipse

AlucardZero 07-02-2010 07:13 AM

Crisantux 07-15-2010 02:35 AM

In addition to know how to set an environment variable in general you should know, there is a set of scripts in OpenSuse to change all needed settings to use a specific Java version.

In a command shell, being root user, you get a list of already installed Java VMs with command

update-alternatives --list java
Setting all PATH and CLASSPATH variables to use another of the installed VMs is done with

update-alternatives --config java
You can install different VMs from OpenSuse build server. I don't know, if the "update-alternatives" script works with a Java VM not installed through the OpenSuse packet management.

All times are GMT -5. The time now is 04:43 AM.