I have a Java copied in location. This is not added in the JAVA_HOME so Java command will not work.
I want to run a jar file located in .
I tried this command :
start \javaw.exe -jar \abc.jar but it does not work because both the path contains spaces.
What should be the actual command to run it ?
Try it with double quotes e.g.
"c:\\Program Files\\Java\\java.exe" -jar abc.jar
It takes care of the spaces in the path
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments