+ 3

I have a problem with running java codes with my command prompt. It says that javac is not a batch command. Any help?

15th Mar 2017, 1:25 PM
Owuora Mercy
Owuora Mercy - avatar
2 Réponses
+ 11
then tun you java program with an IDE like Intelij Idea or reinstall java, I'm not sure about that javac
15th Mar 2017, 1:29 PM
Kamil
Kamil - avatar
+ 3
what is Your OS? Find a folder with javac, check whether ther are other runnable files, just add this folder to a classpath or either path Linux's gor preinstalled OpenJDK - You can remove it becouse every upgrade changes path to oJDK folders, which means You will enjoy in periodic editing of classpath. Anyway, at first try to change mentioned system paths, if won't help delete openJDK, reinstall JDK, finally edit the paths. @Kamil javac is essential for JDK, so problem lays in crossed/missed folders/paths..
15th Mar 2017, 2:28 PM
Michał Bujakowski
Michał Bujakowski - avatar