axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mule_user <>
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%

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

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

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

C:\Download\Axis2\axis2-1.5\bin>java2wsdl -cp

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

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%

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:
Sent from the Axis - User mailing list archive at

View raw message