AFAIK, you have installed another JDK in the machine before you correct the
PATH variable. Can you mention the vendor and version of it ?

Thanks,


On Wed, Nov 6, 2013 at 12:41 PM, Krishantha Samaraweera <[email protected]
> wrote:

> We have seen this issue when working with interns last year. Who had
> installed both open jdk and sun jdk encountered this problem. Uninstalling
> open jdk completed solved their problem.
>
> This could be related Runtime.getRuntime() or problem with wso2server.sh.
> Also cold be something do with your environment. I cannot exactly say what
> is the reason here without debugging.
>
> Please follow the workaround provided by us for the time being and
> continue your work. Thanks for create a JIRA to track the problem.
>
> Thanks,
> Krishantha.
>
>
>
> On Wed, Nov 6, 2013 at 11:20 AM, Chamara Ariyarathne <[email protected]>wrote:
>
>> I have set JAVA_HOME in my machine as following in the ~/.bashrc
>>
>> export JAVA_HOME=/home/chamara/Programs/Java1.6/jdk1.6.0_45
>> export PATH=$PATH:$JAVA_HOME/bin
>>
>> And variables set in the machine are;
>>
>> $ echo $JAVA_HOME
>> /home/chamara/Programs/Java1.6/jdk1.6.0_45
>>
>> $ echo $PATH
>>
>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/chamara/Programs/Java1.6/jdk1.6.0_45/bin
>>
>> In the ESB_HOME/bin/wso2server.sh when the following configuration is
>> present
>>
>> echo $JAVA_HOME
>> if [ -z "$JAVACMD" ] ; then
>>   if [ -n "$JAVA_HOME"  ] ; then
>>     if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
>>       # IBM's JDK on AIX uses strange locations for the executables
>>       JAVACMD="$JAVA_HOME/jre/sh/java"
>>     else
>>       JAVACMD="$JAVA_HOME/bin/java"            ; LINE 117
>>     fi
>>   else
>>     JAVACMD=java
>>   fi
>> fi
>>
>> if [ ! -x "$JAVACMD" ] ; then
>>   echo "Error: JAVA_HOME is not defined correctly."
>>   echo " CARBON cannot execute $JAVACMD"
>>   exit 1
>> fi
>>
>> I can start the esb server without any error. But when I try to run
>> integration tests the following error comes
>>
>> [2013-11-06 05:40:44,488]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  /home/chamara/Programs/Java1.6/jdk1.6.0_45/bin/java
>> [2013-11-06 05:40:44,490]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  Error: JAVA_HOME is not defined correctly.
>> [2013-11-06 05:40:44,490]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>> CARBON cannot execute
>> /home/chamara/Programs/Java1.6/jdk1.6.0_45/bin/java/bin/java
>>
>> But if I modify the wso2server.sh as following; in the line 117;
>>
>>       JAVACMD="$JAVA_HOME"
>>
>> Then I can run the integration tests.
>>
>> What is the problem here? Is it due to some wrong java related
>> configuration in my machine?
>>
>> --
>> *Chamara Ariyarathne*
>> Senior Software Engineer - QA;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; *+94772786766 <%2B94772786766>*
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to