0

Java example program not working?

Im trying to make the test example program work. I've got the path for both jdk and jre pasted in the user variables and the system variables and it seems to be installed properly since i get the expected results when i just type in the javac command. I downloaded notepad++ and copy-pasted the code it gives and saved as instructed but when i give the command to run it i just get a "file not found". what else can i check on and fix to get this to work?

30th Oct 2016, 10:54 PM
Lili Hermandez
Lili Hermandez - avatar
1 Antwort
0
You have to change language in Notepad++ for Java. If it is not working try javac command to compile your file and then run it. And don't forget that when you run a file from cm you have to specify the file folder.
3rd Nov 2016, 12:26 PM
Mateusz Wiezik
Mateusz Wiezik - avatar