Answer the question
In order to leave comments, you need to log in
How to compile a package, create a JAR file and run from the command line?
I write on the command line:
javac ResourceTest.java
jar cvfm ResourceTest.jar ResourceTest.mf *.class *.gif *.txt
java -jar ResourceTest.jar
When ResourceTest.java does not work in a package, but works without a package. How to make it clear to the command line that ResourceTest.java is in a package?
There is one line in the manifest:
Main-Class: ResourceTest
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question