You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by mule_user <sg...@aol.com> on 2009/09/29 23:11:46 UTC
Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment variable
is not defined correctly
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.
Re: Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment
variable is not defined correctly
Posted by mule_user <sg...@aol.com>.
I also changed the JAVA_HOME as:
C:\PROGRA~1\Rational\Common\java\jre\bin
That did not work either.
mule_user wrote:
>
> 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-tp25671005p25671216.html
Sent from the Axis - User mailing list archive at Nabble.com.
Re: Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment
variable is not defined correctly
Posted by Sebastian Schneider <sc...@dvz.fh-aachen.de>.
JAVA_HOME should point to the home directory of your JDK-installation:
In my case, for example JAVA_HOME is set to C:\Programme\Java\jdk1.6.0_16