Two Laptop Bag
The moose likes JDBC and the fly likes Difference between running in Eclipse and as a jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Difference between running in Eclipse and as a jar" Watch "Difference between running in Eclipse and as a jar" New topic
Author

Difference between running in Eclipse and as a jar

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
Whenever I run PartsOfSpeechRequest() in Eclipse from the code as shown below, it works fine.



However, whenever I put it in a jar, it doesn't work. It will establish a connection, but the method will not work. As you can see, I have put a bunch of JOptionPane.showMessageDialogs, to see exactly where it was breaking. It gets to the try...and then nothing. Neither the JOptionPane that displays "C was closed >.<" nor "Before the PreparedStatement" display.

Does anyone have a suggestion as to why this happens?
Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
While I had originally thought that this was a MySQL and JDBC problem, I eventually figured out that it was not. It was a jar Manifest problem, but I have it all worked out now.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difference between running in Eclipse and as a jar
 
Similar Threads
how to convert to statements to an array
Adding code to return an ArrayList of objects
Unable to find specific product
error while entering the data into oracle database
Derby Embedded Database: errors in connection code