「c:\jdk.1.7.0」のJava SE Development Kit 7 Downloadsから JDK をダウンロードしてインストールし 、変数パスを「c:\jdk.1.7.0」に設定しましたが、たとえば次のコマンドを使用します。
jar xvf ..\src.zip
このエラーが表示されます:
'jar' is not recognized as an internal or external command,
operable program or batch file.
Core Java 第 1 巻 (第 9 版) を読んでいます。したがって、ここでは最初にコマンドを実行するように述べています:
javac -version
その後、同じエラーが発生しました。また、bin ディレクトリには javac.exe もありませんでしたが、java.exe が見つかり、動作しました。jar.exe も別の名前または別の場所に変更されますか? この本が今年発売されたのに、最新版ではファイル名すら一致しないのは奇妙に思えます。
PS Windows 7 64ビットを使用しています。
コマンドを使用:
echo %PATH%
リターン:
%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%
に設定されていますC:\jdk1.7.0