- Joined
- Jun 30, 2008
- Messages
- 1,145 (0.20/day)
- Location
- England
System Name | Wasleys PC |
---|---|
Processor | Intel i5 2400 3.10GHz |
Motherboard | Asus P8z68-V |
Cooling | AC Freezer Pro |
Memory | Kingston 4GB (2x2GB) DDR3 Hyperx Memory |
Video Card(s) | HIS ATi 6850 1GB DDR3 |
Storage | Seagate ST3500320AS 500GB Hard Drive SATA II 7200rpm *32MB Cache* |
Case | Antec 900 with mods |
Audio Device(s) | On Board |
Power Supply | OCZ Stealth Xtream 500W |
Software | Windows 7 |
Hi All,
I've tried to publish my Java program by using "Clean and Build" in Netbeans. It's produced a .jar file - but when double clicked, it loads nothing.
I've tried loading it on the command line using:
java -jar "C:\Users\USERNAME\Desktop\program1\dist\MYPROGRAM.jar"
And the error:
Failed to load Main-Class mainfest attribute from:
C:\Users\USERNAME\Desktop\program1\dist\MYPROGRAM.jar
I've been told to create a .txt file with the line:
MainClass : MainMenuUI.
But this doesn't seem to have any effect.
EDIT - I've managed to answer my own question and publish my program. Is there any way of converting it to a .jar as by having my program as a .jar file limits the amount of people able to use it. (IE - They must have a JRE installed?)
Regards,
Wozzer
I've tried to publish my Java program by using "Clean and Build" in Netbeans. It's produced a .jar file - but when double clicked, it loads nothing.
I've tried loading it on the command line using:
java -jar "C:\Users\USERNAME\Desktop\program1\dist\MYPROGRAM.jar"
And the error:
Failed to load Main-Class mainfest attribute from:
C:\Users\USERNAME\Desktop\program1\dist\MYPROGRAM.jar
I've been told to create a .txt file with the line:
MainClass : MainMenuUI.
But this doesn't seem to have any effect.
EDIT - I've managed to answer my own question and publish my program. Is there any way of converting it to a .jar as by having my program as a .jar file limits the amount of people able to use it. (IE - They must have a JRE installed?)
Regards,
Wozzer
Last edited: