I have a small java program written in Eclipse Oxygen (with a single class called `Main`) that works in Eclipse as expected. I tried to compile it using `javac Main.java`. The problem is that the java compiler doesn't throw any errors and seems to recognize the command, but doesn't create a .jar file of any kind anywhere. I tried setting the classpath manually (although this shouldn't be necessary) but the result was the same.

Update: I was (or still am) a noob and didn't understand what `javac` does. It was pointed out to me that `javac` only creates `.class` files, which it actually did when I used it, so there was no "wrong behavior" or error of any kind. Look at the answers if you want to know how to create `.jar` files in Eclipse.