简体   繁体   中英

Running java.exe from Windows cmd.exe

I want to run java -jar from the JDK directory on my system:

D:\Users\djpastis\Downloads\fmw_12.2.1.4.0_wls_Disk1_1of1>C:\Program Files\Java\jdk1.8.0_162\bin\java

but I have this error, even the path is OK

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

Paths containing special characters, such as a SPACE, must be quoted. Microsoft put a SPACE characters in there for you. :-) The only reliable, safe way is to always quote paths.

"%ProgramFiles%\Java\jdk1.8.0_162\bin\java.exe"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM