+ 1
File not found??
I type the command: javac ExampleProgram.jar and it comes up with javac: file not found: ExampleProgram.jar
5 Answers
+ 8
Next steps to check:
- Did you change to the directory where your main class is stored (or opened console from this directory)?
- System environment: Make sure PATH is only set for system, not for system and user.
+ 7
... or not set the path in the system environment.
See SoloLearn's Java course for instructions.
+ 2
You don't have JDK it seems.
0
I installed jdk and set the path to bin in the jdk folder.
- 1
I actually did the steps again on a different computer, and it worked fine. Thanks for the help!