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!
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.