D
D
DmitrySVP2016-06-27 02:28:10
Java
DmitrySVP, 2016-06-27 02:28:10

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?
2ea50fda20b646948531f99cefdfbc63.jpg
There is one line in the manifest:
Main-Class: ResourceTest

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-06-27
@Rou1997

To get started, run the commands separately, which one does not work, which error. "All in a bunch" is not an approach for programming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question