我在我的java项目中使用了 javabuilder.jar 和 CommodityWeigth.jar (这是我自己的jar文件)。我想从该项目创建可执行jar文件,并在this link中使用 @joost answer。但我收到警告:
Description Resource Path Location Type Classpath entry C:/Users/sahar/Documents/workspace-sts-3.8.1.RELEASE/ahp/libs/commodityWeight.jar will not be exported or published. Runtime ClassNotFoundExceptions may result. ahp P/ahp Classpath Dependency Validator Message
Description Resource Path Location Type Classpath entry E:/Matlab/toolbox/javabuilder/jar/javabuilder.jar will not be exported or published. Runtime ClassNotFoundExceptions may result. ahp P/ahp Classpath Dependency Validator Message
并且由于这些警告,jar文件将无法正常运行。
当我用WinRAR打开创建的jar文件时,我可以看到javabuilder和CommodityWeigth罐子。