axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mule_user <s...@aol.com>
Subject Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment variable is not defined correctly
Date Tue, 29 Sep 2009 21:11:46 GMT

Under Control panel->System, I have defined JAVA_HOME as an environment
variable as: C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe

I have JAVA_HOME defined as shown below:

C:\Download\Axis2\axis2-1.5\bin>echo %JAVA_HOME%
C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe

For testing purposes, I copied Driver.class in directory
C:\Download\Axis2\axis2-1.5\bin and I can successfully run the command
below:

C:\Download\Axis2\axis2-1.5\bin>java Driver
hello

When I try to run java2wsdl, I get the error below:

C:\Download\Axis2\axis2-1.5\bin>java2wsdl -cp
%JAVA_HOME%;C:\Download\Axis2\axis

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

I even set the classpath as below:

C:\Download\Axis2\axis2-1.5\bin>set CLASSPATH=%CLASSPATH%;%JAVA_HOME%

C:\Download\Axis2\axis2-1.5\bin>java Driver
hello

However, running java2wsdl gives the same error as above stating JAVA_HOME
is not defined.

I have defined AXIS2_HOME as an environment variable as: 
C:\Download\Axis2\axis2-1.5\bin>echo %AXIS2_HOME%
C:\Download\Axis2\axis2-1.5\lib*


Please suggest what I need to do to have java2wsdl running and resolve the
problem stating JAVA_HOME not properly defined.


-- 
View this message in context: http://www.nabble.com/Axis2-%281.5%29---java2wsdl-throws-error-JAVA_HOME-environment-variable-is-not-defined-correctly-tp25671005p25671005.html
Sent from the Axis - User mailing list archive at Nabble.com.


Mime
View raw message