Vote count:
0
I've come across a problem, when trying to package my Java files. I have three Java files: OneMessage.Java, TwoMessage.Java, and AllMessages.Java. I'm on Windows, and so I used cmd to compile these files:
javac OneMessage.Java
javac TwoMessage.Java
javac AllMessages.Java
I then created a Manifest file - using Notepad - with the following and saved it as Manifest.mf:
Manifest-Version: 1.0
Main-Class: AllMessages
(There's a single line after "Main-Class: AllMessages".)
However, when I tried to create my executable JAR file, a problem occurs, stating that the system cannot file the file specified (the file is in the source folder btw). And this is what I input to create my JAR file:
cvmf AllMessages.jar Manifest.mf *.class
However, I get the following: "java.io.FileNotFoundException: Manifest.mf (The system cannot find the file specified".
Help is appreciated as ever.
asked 1 min ago
Error creating JAR file using Command Prompt
Aucun commentaire:
Enregistrer un commentaire