I solve an example from the textbook. Created a file Puzzle4.java, in it main class. I'm trying to compile (there are most likely errors in the code, I wanted to see what the compiler would write).
$ ls Mix4.class Mix4.java Puzzle4.java README.md test.txt $ javac Puzzle4.java $ ls Mix4.class Mix4.java Puzzle4.java README.md test.txt No errors were output to the terminal. In the folder there is another example Mix4.java, which was successfully compiled and launched. Versions of javac and java are the same:
$ java -version java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) $ javac -version javac 1.8.0_101 What should I do to make the compiler display information about errors in the code?
RuntimeException, then the compiler will not give you anything. just need to run - Chubatiy