且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“找不到合适的司机”从JAR运行时

更新时间:2023-11-19 20:32:58

您在NetBeans中构建项目,它在项目的主文件夹中创建一个 dist 文件夹,将代码的JAR文件放在该文件夹中,并放置依赖项(JAR)所需组件(如UCanAccess,Jackcess,HSQLDB和Apache Commons位)的文件到名为 lib 的子文件夹中。您需要确保将 lib 文件夹复制到目标计算机并放在与主JAR文件相同的文件夹中。有关详细信息,请参见此处

When you build your project in NetBeans it creates a dist folder in the home folder of your project, puts the JAR file for your code in that folder, and also puts the dependencies (JAR files for required components like UCanAccess, Jackcess, HSQLDB, and Apache Commons bits) into a subfolder named lib. You need to ensure that the lib folder gets copied to the target machine and placed in the same folder as your main JAR file. Look here for details.