为什么我的Java可执行JAR无法连接到数据库?
我编写了一个Java程序,该程序在IDE中执行正常,并建立了MySQL连接。但是,当我右键单击项目时,清洁并构建,然后双击源文件夹中的JAR文件。该程序打开了,但是与数据库有关的所有内容都没有显示。
I have written a java program that executes fine in the IDE, and makes a mysql connection. But when I right click the project, clean and build and then double click the jar file in the source folder. The program opens fine, but everything related to the database doesn't show..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论