Help with manifest.txt and .jar
I have two class files I'm trying to create a .jar file for:
InventoryMain.class (houses my main)
Inventory.class
Both files are in package inventorymain
Here is everything I have tried in my manifest.txt file:
Manifest-Version: 1.0
Main-Class: inventorymain.InventoryMain (1st try)
Main-Class: InventoryMain (2nd try)
Main-Class: inventorymain (third try)
I use the following in command prompt:
jar cvfm Inventory.jar manifest.txt *.class (this runs and says all 3 files are included)
then when I try to run Inventory.jar I get the following error:
A window pops up labeled Java Virtual Machine Launcher with the error of "could not find the main class. Program will exit.
Anyone know what I am doing wrong? I am a student, and this is the first program I have created that uses more than one file. I have been all over the Internet to look for things I can do. I am stumped!! Anyhelp would be appreciated. Here is the beginning of my main program, if it will help someone help me.
package inventorymain;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
publicclass InventoryMain
{
// Creates a new instance of InventoryMain
public InventoryMain()
{
}
// main method begins execution of java application
publicstaticvoid main(String[] args)
{

