Answer the question
In order to leave comments, you need to log in
Why might the javac command not work in java SE 1.8_051-b16?
Beginner Javist. I have been studying for 2 months. I usually wrote in Eclipse, but I decided to follow the advice of the gurus and compile programs using the console.
I wrote a typical holoworld and in the directory with it I try to compile it into bytecode with the
command> javac Hi.java
(the class and file name are identical, the case is preserved),
after which the Hi.class file should appear in the folder, but unfortunately it gives the line
"javac " is not an internal or external command, operable program, or batch file.
checked the already compiled byte code, which was compiled by eclipse itself
in the directory with eclipse with a .class file in the console, it was launched by the java command.
I heard something that console commands have been changed in Java 8. If this is the case, then they could not throw off the current teams. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
If you mean the lack of a terminal reaction to the 'javac' command, then for windows, for example, this is solved by setting environment variables CLASSPATH
.
BUT, one respected author in one respected book for beginners once said that if you set this variable, the compiler will work from the terminal, but you do not need to do this because:
1. There is an IDE.
2. This can lead to problems if you have multiple language versions on the same machine.
PS These 'guru' tips on compiling from the terminal are only (in my strict IMHO) so that you better understand where the legs grow from and how it actually works. As a matter of fact - useless understanding, as for example to the scripter to know iron. But if your hands still itch, then gmax007gave a complete link =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question