开发者

how to add mysql db to my project?

I write a program with netbeans.

I connect my program to mysql an use from db that I made in mysql and it work correct.

Now I create .jar file from my project and it works but didn't c开发者_JAVA技巧onnect to mysql and don't show any data but I am sure that I have information in my database.

What is problem?


You need to do more debugging. Make sure you are catching and logging or printing out exceptions. They should indicate a more specific problem. Make sure you have all the needed drivers and depended libraries in the class path of the .jar you are trying to run.


May be you missed to pack MySql jar in your jar.


What error do you get? Its hard to say proper solution with the information you have provided.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜