This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between running in Eclipse and as a jar  RSS feed

 
Atrus Greyor
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!