• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Weird java message when executing through console.

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did the following

D:\jaxws-ri\bin>wsimport.bat -p test -s d:\temp\ -d d:\temp c:\School.wsdl

JDK's tools.jar was not found in C:\Program Files\Java\lib\tools.jar. Usually th
is means you are running JRE, not JDK. Please use the java command in JDK 5.0 or
later (not JRE.)


What does this mean ?? JDK tooks.jar exists in C:\Program Files\Java\jdk1.7.0\lib
How can i resolve this issue. I have never used the "java" command before. I have to admit eclipse has spoiled me

solved just needed to add java_home in env.
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajesh Khan wrote:I did the following

D:\jaxws-ri\bin>wsimport.bat -p test -s d:\temp\ -d d:\temp c:\School.wsdl

JDK's tools.jar was not found in C:\Program Files\Java\lib\tools.jar. Usually th
is means you are running JRE, not JDK. Please use the java command in JDK 5.0 or
later (not JRE.)


What does this mean ?? JDK tooks.jar exists in C:\Program Files\Java\jdk1.7.0\lib
How can i resolve this issue. I have never used the "java" command before. I have to admit eclipse has spoiled me



Yes, it exists in C:\Program Files\Java\jdk1.7.0\lib, but your scrip is looking in C:\Program Files\Java\lib.
Do you have an environment variable JAVA_HOME that points to your JDK?
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic