I downloaded and installed JDK from Java SE Development Kit 7 Downloads in "c:\jdk.1.7.0", set variable path to "c:\jdk.1.7.0", but using command for example:
jar xvf ..\src.zip
Gives me this error:
'jar' is not recognized as an internal or external command,
operable program or batch file.
I'm reading Core Java volume 1 (9th edition). So here it stated to run firstly command:
javac -version
Then I got that same error. And in bin directory there were no javac.exe too, but I found java.exe and it worked. So does jar.exe is also changed to some another name or it somewhere else? It seems strange that this book is released this year and even names of files do not match in newest version or am I missing something here?..
P.S. I'm using windows 7 64 bit.
using command:
echo %PATH%
retuns:
%JAVA_HOME%\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CommonPr
ogramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Wind
ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\I
ntel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Fi
les (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2
.0\bin\x64;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program File
s\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Intel\WiFi\bin\;C:
\Program Files\Common Files\Intel\WirelessCommon\
%JAVA_HOME%
is set to C:\jdk1.7.0