File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Head First Android this week in the Android forum!
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: 2541
    
  10

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
 
jQuery in Action, 3rd edition
 
subject: Weird java message when executing through console.
 
It's not a secret anymore!