futbolsalas15
futbolsalas15

Reputation: 163

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!

Upvotes: 3

Views: 5153

Answers (2)

Waruna Perera
Waruna Perera

Reputation: 68

You can use it like this

sudo JAVA_HOME=/usr/lib/jvm/java-7-oracle ./wso2server.sh

Upvotes: 5

nuwanbando
nuwanbando

Reputation: 581

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.

Upvotes: 6

Related Questions