打包的jar能正常运行,正常连接数据库。exe4j生成exe后执行到访问数据库就报错:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: java/sql/SQLException
依赖的mssql-jdbc-10.2.0.jre17.jar也一并打包到exe中了的
打包的jar能正常运行,正常连接数据库。exe4j生成exe后执行到访问数据库就报错:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: java/sql/SQLException
依赖的mssql-jdbc-10.2.0.jre17.jar也一并打包到exe中了的