cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Environment variables

Former Member
0 Kudos

Hello,

I'm a bit confuse about the declaration of Environment Variable Java_home in a Suse OS.

I want to declare it for all users of system. I've tried to include this two entries on /etc/profile

 

     export JAVA_HOME=/usr/java/jre1.7.0_66/bin

 

     export PATH=$JAVA_HOME/bin:$PATH

system@development:/soft/SAP_Download_Manager_1.0_Installation_/Linux/NoVM> sudo ./install.bin

Preparing to install...

Extracting the installation resources from the installer archive...

Configuring the installer for this system's environment...

No Java virtual machine could be found from your PATH

environment variable.  You must install a VM prior to

running this program.

What I'm doing wrong?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Reagan
Advisor
Advisor
0 Kudos

Set JAVA_HOME to /usr/java/jre1.7.0_66 instead of /usr/java/jre1.7.0_66/bin and try

Regards

RB

Former Member
0 Kudos

Hello Reagan,

I've tried with :

export JAVA_HOME=/usr/java/jre1.7.0_66/bin

export PATH=$JAVA_HOME:$PATH

If I want to maintain this parameters after logoff of the user, I should mantain it into /etc/profile?

Now I'm getting this message when I've tried to install with UI Mode (-i Console).

User Interface Mode Not Supported

The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The valid UI modes identifiers are GUI, Console, and Silent.

Reagan
Advisor
Advisor
0 Kudos

Hello Ruben

If you want to set the JAVA_HOME system wide then /etc/profile instead if you want to set for a specific user then set it in the $HOME/.profile of that particular user.

Previously I suggested you to set the JAVA_HOME to /usr/java/jre1.7.0_66 instead of /usr/java/jre1.7.0_66/bin

Regarding the User Interface mode try setting the DISPLAY variable as well.

You can run /soft/SAP_Download_Manager_1.0_Installation_/Linux/NoVM/install.bin -help to get the list of options and if possible try the silent mode after fixing the JAVA_HOME variable

Regards

RB

Former Member
0 Kudos

I've tried with install.bin -help and man install.bin but I can't get help from the application.

With the option Silent I'm getting the same result...

./install.bin -i Silent

=======================================================

Installer User Interface Mode Not Supported

The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The valid UI modes identifiers are GUI, Console, and Silent.

=======================================================

Reagan
Advisor
Advisor
0 Kudos

Have you set the JAVA_HOME variable in the suggested way ? If yes provide the output of

which java

java -version

Former Member
0 Kudos

Hello Reagan,

The output

system@development:~>java -version

java version "1.7.0_66"

Java(TM) SE Runtime Environment (build 1.7.0_66-b01)

Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

system@development:~>

But I can't install sap download manager with the different installation options...

Former Member
0 Kudos

I am having the same issues - did you find a resolution for this? JAVA_HOME is set properly but it won't accept any UI mode. Results of my java -version call (I'm on linux x86_64):

>java -version

java version "1.7.0_75"

Java(TM) SE Runtime Environment (build 1.7.0_75-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)

mani_perumal
Explorer
0 Kudos

I am having the same issue -- wont accept any UI mode. Any resolution?

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi ruben,

Try to set path upto jre bin.

Also, in path give full path rather than evn variable.

To test, type echo $PATH and check with java -version.

They should return correct values.

For all users, give it in os default profile of shell or dot profiles of each user.

Regards

Former Member
0 Kudos

Thanks for your answer Divyanshu, but could you explain me with more details?

divyanshu_srivastava3
Active Contributor
0 Kudos

At global level - every shell has certain environment variables which are given to all users who are running commands and applications under that shell.

At local level - every user has an environment which is supplied to him by currwnt execution shell and profiles.

Variables supplied in global are overwritten by local, if exists at both level.

Every user has a hidden profile in his home directory called as a 'dot profile', which start with a '.' Symbol.

I think that all is the fundamental behind it.

Regards

former_member215961
Contributor
0 Kudos

Hi Ruben,

If your aim is install set up the enviroment variables in order to install download manager. You should set up correctlly for the same user that you install it.

Just do:

$ sh

$ export PATH

$ ./install

Cheers

Former Member
0 Kudos

Hello Sargan,

I've tried with your steps but I'm getting the same result

Extracting the installation resources from the installer archive...

Configuring the installer for this system's environment...

No Java virtual machine could be found from your PATH

environment variable.  You must install a VM prior to

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Ruben,

As asked before, try to set path upto JRE bin.

set JAVA_HOME to the home directory of your JAVA - before bin and check with above steps that I asked you before.

Regards