We can achieve web services in java using JAX-WS or Apache axis2.JAX-WS is comes with JDK 1.6 and you don’t need separate installation but axis2 is different.Apache Axis2 is a Webservices(SOAP) WSDL engine .Axis2 is a one of the
most popular web services engine in java.It is also available for C programming language check here more information Apache Axis2/C.
Apache Axis2/Java Version 1.5.2 is a latest version for Java.And you can download the latest version using following link.
Download Apache Axis2/Java 1.5.2.
How to set environment variable for Axis2.
Before you are going to environment variable for axis2 ensure you already set environment variable for java.
Java Environment Variable
Go to My Computer – Right Click Properties – Advanced – Environmental Variable.
JAVA_HOME = C:Program FilesJavajdk1.6.0_12
![]()
Axis2 Environment Variable
AXIS2_HOME = axis2 installation location
PATH – axis2 installation location including bin.
Ensure that you have set successfully.
Go to command prompt and type java2wsdl it should show like below.
![]()

Pingback: Environment Variables for Java Project |