I made a Java application (JDK 1.7) using Netbeans 8.1 and JavaFX.
The basic idea is a grid filled with letters, the rows and columns are sequentially highlighted to allow a person to chose a letter with a single key press (spacebar). Once the number of characters is equal or greater than 3, I implemented an autocomplete feature that fetches word starting with those letters and ranks them by lexical frequency.
It works really well when I run the project from inside the IDE but when I try to run it outside the following happens:
Some possible reasons:
Netbeans runs from the .class files while running externally uses the .jar file.
Do a clean and rebuild and try again.
Netbeans specifies the classpath to all the libraries it wants the app to use on the command line. What command line are you using? Are there any differences?
You can see the command line used in the output window when Netbeans runs your app (you may need to enable a verbose form of output - with Maven you can add --debug).
Many people give Netbeans administrator rights (allows it to create jar files for example). This may not be the case on the command line.
Try running the .jar from a command prompt with admin rights.
Java ... -jar ...you will get the latest Java version which may be different.
Try running it from the command line selecting a specific version of Java. Something like
"C:\Program Files\Java\jdk7\jre\bin\java" ... or similar.