• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue with JAVA_HOME setup

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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)

c:\JRE\lib>path
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
java_home

c:\JRE\lib>echo %JAVA_HOME%
C:\JRE\bin

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 axis2.sh
17/04/2008 04:34 3,161 axis2server.bat
17/04/2008 04:34 1,443 axis2server.sh
21/04/2011 15:45 2,919 java2wsdl.bat
17/04/2008 04:34 868 java2wsdl.sh
17/04/2008 04:34 3,492 setenv.sh
17/04/2008 04:34 2,822 wsdl2java.bat
17/04/2008 04:34 866 wsdl2java.sh
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?

Thanks
Rafi.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic