Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

java_home not avalid

asked 2015-11-20 19:39:18 -0800

kiennguyen gravatar image

I run ./bin/karaf but have ploblem karaf: JAVA_HOME is not valid: /usr/lib/jvm/java-1.7.0-openjdk-amd64 help me please! thank you so much

edit retag flag offensive close merge delete

Comments

Could you list the directories which you have in /usr/lib/jvm? and which OS are you using?

Gabs90 ( 2015-11-23 01:08:50 -0800 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-21 17:58:07 -0800

do u have bin/java under /usr/lib/jvm/java-1.7.0-openjdk-amd64?

edit flag offensive delete publish link more

Comments

thanks for answers

kiennguyen ( 2015-12-06 18:55:06 -0800 )edit
0

answered 2015-12-04 12:42:17 -0800

runamuck gravatar image

Try this (on Ubuntu)

 $ sudo apt-get install openjdk-7-jdk
 $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-openjdk-amd64/bin/java 1
 $ sudo update-alternatives --config java

Then add the following line to the end of your ~/.bashrc file:

 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 # This matches sudo update-alternatives --config java
edit flag offensive delete publish link more

Comments

thanks for answers, I had fixed it.

kiennguyen ( 2015-12-06 18:56:12 -0800 )edit
Login/Signup to Answer

Stats

Asked: 2015-11-20 19:39:18 -0800

Seen: 1,073 times

Last updated: Dec 04 '15