'C:\Program' is not recognized as an internal or external command.
Setsuko
-
Jean20B Posted messages 1861 Registration date Status Membre Last intervention -
Jean20B Posted messages 1861 Registration date Status Membre Last intervention -
Hello, I followed a tutorial to join a private server of a video game on PC, but after a while I encountered the following problem:
In a ".txt" file (Notepad) I had to write the following command:
start cmd /k "C:\Program Files\Java\jdk-17.0.3\bin\java.exe" -jar grasscutter.jar
then change the extension of this ".txt" file to a ".bat" (cmd) file
After that, I had to run the bat file, (Normally it was supposed to work)
but instead of writing a bunch of code lines like in the video, I get the error message below:
'C:\Program' is not recognized as an internal
or external command, operable program or batch file.
And even after re-watching the video several times, I don't see the problem.
If you would be kind enough to help me, I would be extremely grateful….
I should mention that I'm really bad at computers.
Thank you.
In a ".txt" file (Notepad) I had to write the following command:
start cmd /k "C:\Program Files\Java\jdk-17.0.3\bin\java.exe" -jar grasscutter.jar
then change the extension of this ".txt" file to a ".bat" (cmd) file
After that, I had to run the bat file, (Normally it was supposed to work)
but instead of writing a bunch of code lines like in the video, I get the error message below:
'C:\Program' is not recognized as an internal
or external command, operable program or batch file.
And even after re-watching the video several times, I don't see the problem.
If you would be kind enough to help me, I would be extremely grateful….
I should mention that I'm really bad at computers.
Thank you.
1 réponse
Hello, did you correctly place the quotes around the file path?
"C:\Program Files\Java\jdk-17.0.3\bin\java.exe"
Another question, have you checked that your Java is installed in the folder C:\Program Files\Java\jdk-17.0.3\bin and not elsewhere?
To check, in your C drive, go to the folders Programs -> Java -> jdk-17.0.3 -> bin and see if there is an application named java (or java.exe).
Note: if the name of the folder in bold is different (jdk-17.0.3), you will need to modify it in your notepad to match the one you found.
"C:\Program Files\Java\jdk-17.0.3\bin\java.exe"
Another question, have you checked that your Java is installed in the folder C:\Program Files\Java\jdk-17.0.3\bin and not elsewhere?
To check, in your C drive, go to the folders Programs -> Java -> jdk-17.0.3 -> bin and see if there is an application named java (or java.exe).
Note: if the name of the folder in bold is different (jdk-17.0.3), you will need to modify it in your notepad to match the one you found.