Could not find main class
I'm learning Java and I'm not a complete idiot, but this is perplexing me.
I have a simple app that will basically roll a dice. It gets input about number of sides, times to roll and modifiers, calls the Random class and then prints all the individual rolls and lastly the total. Fairly simple, no?
I've compiled it and it all works perfectly through Command Prompt and so I figure I want to make it into a little stand alone jar.
Firstly I make it into a .jar. No problem, all works. Secondly I add a manifest file, and I fear this is the problem.
My dice.class is in the location
and so I have a manifest file called "manifest.txt." containing the single line;
followed by a return.
I compile the class (after using cd C:\Java Tools\)using the regular then the location of the manifest.txt and the location of the dice.class. It all works well and I end up with a nice little dice.jar. Now I've been told that from here you can double click and it will run, but it doesn't. I get a nice dialogue box containing
and when I try and run it through the control panel with I get a
Could not find the main class: com.dorksanddorkettes.dice.dice. Program will exit.
So fine minds of Java Forum... where am I going wrong? I've looked all over the place and can't see a reason this shouldn't be working. If there is a typo in the code here then assume I didn't make it when I tried all this.
NoClassDefFoundError: com\dorksanddorkettes\dice\dice (wrong name: dice)