Skip to Content
avatar image
Former Member

Setting Environment variables

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Sep 25, 2014 at 04:32 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 26, 2014 at 07:36 AM

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

    Regards

    RB

    Add comment
    10|10000 characters needed characters exceeded