I created a quick program in Java just to get started with the GUI-based elements of Java before I start writing the actual program. In Netbeans, everything compiles perfectly, and the GUI has all of the elements I put into it, so there is not problem when I am using Netbeans.
However, upon building and packaging into the JAR, I have no result on open. I have tried to use Webstart and everything else I could think of, but I get no different result. The JAR does, however, change size along with the varying of my program, so I know something is working, I just must be missing a file or something of that nature.
EDIT:
The manifest says the following after the build (This is inside the JAR):
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_26-b03 (Sun Microsystems Inc.)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: com.nmagerko.Execute
I have found the answer.
Using help from @Mocker Tim, I found that using
java -jar program-name.jarallowed for details that Netbeans did not catch.This ended up being the fact that my path to my icon had one too many “/”‘s, and removing that one slash allowed for the program to be jarred correctly.