I created a program in Java using Eclipse where a Flow Layout containing a text field and an event handler that when a user types in a username and presses enter, the program connects to a mySQL DB and looks for a matching username and selects the rank of that player and a dialog box pops up saying, "<username>'s rank is <rank>"
Anyway, it runs perfectly in eclipse but when I export (as a runnable Jar) and having the "Package required libraries in generated Jar" selected, the resulting program only goes to the window where a user can input text but when they press enter, (which is where the program connects to a mySQL DB) it does nothing and the typing cursor just flashes.
I have installed the Connector/J from mySQL into the environment the Eclipse uses, but how do I package it so it goes with the program and my end users don't have to fuss around installing the Connector/J?
Of course if you have further questions, please ask, but I feel my code is just fine (no warnings when exported) it just wont run outside of Eclipse.