Lakshmi Narasimhan Srinivasan (PCAP)
'jar' is not recognized as an internal or external command,
operable program or batch file.
D:\Java\jdk-17\bin\jar.exe ...
Often the most important part of the news is what they didn't tell.
Tim Holloway wrote:Your environment typically also defines a PATH that Windows will use to locate executable programs to run by defining the directory paths to look for scripts (batch files) and .EXE's. So by defining JAVA_HOME and adding %JAVA_HOME%\bin to that PATH, all of the JDK applications, including "java", "javac" and "jar" will be automatically found when issued as commands in a command shell.
Carey Brown wrote:
Tim Holloway wrote:Your environment typically also defines a PATH that Windows will use to locate executable programs to run by defining the directory paths to look for scripts (batch files) and .EXE's. So by defining JAVA_HOME and adding %JAVA_HOME%\bin to that PATH, all of the JDK applications, including "java", "javac" and "jar" will be automatically found when issued as commands in a command shell.
Add the %JAVA_HOME%\BIN to the PATH at the beginning of the path.
Often the most important part of the news is what they didn't tell.
javac commands work perfectly fine
Lakshmi Narasimhan Srinivasan (PCAP)
Carey Brown wrote:Oracle and Microsoft huddled together to come up with a way to install Java under windows. It doesn't quite follow normal conventions so I can't vouch for what's there except what's needed to support the run-time environment. Oracle always puts theirs first on the PATH which is why, if you install a different version, you have to put your first.
Often the most important part of the news is what they didn't tell.
Lakshmi Narasimhan Srinivasan (PCAP)
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|