This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue with JAVA_HOME setup  RSS feed

Rafiuddin Syed
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am getting the below error when I try to execute java2wsdl command.

I am working on Windows 7 env.

c:\JRE\lib>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Wi
ndows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Progra
m Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Li
ve\Shared;C:\Program Files\axis2-1.3-bin\axis2-1.3\lib;C:\JRE\bin;

c:\JRE\lib>echo java_home

c:\JRE\lib>echo %JAVA_HOME%

c:\JRE\lib>cd "\Program Files\axis2-1.4.1\bin"

c:\Program Files\axis2-1.4.1\bin>dir
Volume in drive C has no label.
Volume Serial Number is B877-E9B5

Directory of c:\Program Files\axis2-1.4.1\bin

21/04/2011 15:45 <DIR> .
21/04/2011 15:45 <DIR> ..
17/04/2008 04:34 2,766 axis2.bat
17/04/2008 04:34 1,853
17/04/2008 04:34 3,161 axis2server.bat
17/04/2008 04:34 1,443
21/04/2011 15:45 2,919 java2wsdl.bat
17/04/2008 04:34 868
17/04/2008 04:34 3,492
17/04/2008 04:34 2,822 wsdl2java.bat
17/04/2008 04:34 866
9 File(s) 20,190 bytes
2 Dir(s) 408,092,667,904 bytes free

c:\Program Files\axis2-1.4.1\bin>java2wsdl
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

c:\Program Files\axis2-1.4.1\bin>

Lost whole day, so far no luck, any advices from the ranchers?


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!