+ 1

File not found??

I type the command: javac ExampleProgram.jar and it comes up with javac: file not found: ExampleProgram.jar

27th Apr 2017, 2:20 PM
Sam
Sam - avatar
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.
27th Apr 2017, 6:03 PM
Tashi N
Tashi N - avatar
+ 7
... or not set the path in the system environment. See SoloLearn's Java course for instructions.
27th Apr 2017, 2:31 PM
Tashi N
Tashi N - avatar
+ 2
You don't have JDK it seems.
27th Apr 2017, 2:26 PM
Nantha
Nantha - avatar
0
I installed jdk and set the path to bin in the jdk folder.
27th Apr 2017, 6:01 PM
Sam
Sam - avatar
- 1
I actually did the steps again on a different computer, and it worked fine. Thanks for the help!
28th Apr 2017, 1:20 PM
Sam
Sam - avatar