How to Make a JAR File in Eclipse | Java JAR

Make a JAR file in Eclipse step by step: choose resources, set a Main-Class when needed, test with java -jar, and understand importing.