Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Weird java message when executing through console. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Weird java message when executing through console." Watch "Weird java message when executing through console." New topic
Author

Weird java message when executing through console.

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
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.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2495
    
    8

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?


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weird java message when executing through console.