Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

How to set the JAVA_HOME thru setenv.bat/sh file

I have two jdk profiles in my system.

I have to set the environment variables through the command line using the setenv.sh file. Then i need to start the gs-agent.sh that should point the JAVA_HOME set in the previous step.

how to use setenv.sh to set JAVA_HOME and other LOOKUPLOCATORS, NIC_ADDR variables ?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=4057]{quote}

asked 2013-03-27 12:22:26 -0600

get4gopim gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Just set these as usual as environment variables. setenv.sh will pick these up:

export JAVA_HOME=/opt/jdk1.6
export LOOKUPLOCATORS=10.123.123.123
export  NIC_ADDR=10.123.123.123

Shay

answered 2013-03-27 12:27:26 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

If I am doing this in the system environment variable this is working.

My default JAVAHOME will be pointing to different JDK. (say for ex: /usr/java/jdk1.6.043)

I need to override this (/usr/java/jdk1.7.0_17) while starting the gs-agent. Is this possible thru the setenv.sh file?

get4gopim gravatar image get4gopim  ( 2013-03-27 12:38:03 -0600 )edit

I think we need to set thru:

You may also modify the <gigaspaces cache="" root="">\bin\setenv.sh to set the JAVA_HOME variable. Unix: setenv.sh

get4gopim gravatar image get4gopim  ( 2013-03-27 12:59:26 -0600 )edit

Yep. That's one way to do that.

shay hassidim gravatar image shay hassidim  ( 2013-03-27 13:23:07 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-03-27 12:22:26 -0600

Seen: 3,622 times

Last updated: Mar 27 '13