Search code examples
ubuntu-12.04wso2wso2-data-services-server

WSO2 Carbon error on Ubuntu Server 12.04 64-bit


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.