WSO2 Carbon error on Ubuntu Server 12.04 64-bit
-
04-07-2021 - |
Question
When I try to run WSO2 Dataservices or other WSO2 Carbon servers, i got the following error:
$ sudo sh /opt/wso2dataservices-2.6.3/bin/wso2server.sh start
Error: JAVA_HOME is not defined correctly.:
CARBON cannot execute java
Then I check the JAVA_HOME variable:
$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.6.0_35
And it is the correct path. The machine have installed Oracle Java JDK 1.6 64-bit and Ubuntu Server 12.04 64-bit.
I really appreciate your answer. Thanks!
Solution
You are running the server as the super user (sudo) which is not required. However I think you dont have the JAVA_HOME set in super user environment.
OTHER TIPS
You can use it like this
sudo JAVA_HOME=/usr/lib/jvm/java-7-oracle ./wso2server.sh
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow