我正在使用 JDeveloper 11g 开发桌面应用程序。我想制作可在 Java 环境中运行的整个项目 jar。如果我只使用标准 Java 库 jar 工作正常,但我的项目包含外部库,如 JfreeChart、Comm、Hibernate3 等...当我尝试制作 jar它显示错误,我如何制作我的项目的整个 jar 以及外部库的。
谢谢
最佳答案
请按照以下说明操作..
- Right-click project and select properties.
- Click on Deployment, setup new Deployment by entering Deployment Profile type and name.
- Now edit Deployment profile on screen.
- Select Jar Options and specify your
main
class.
如果你有 3rd party jar 然后按照
- Select File group the click on New.
- Select Dependency Analysis and Ok.
- Then select the Contributors under new file group you have created.
- Files tab for Files
- Libraries tab for Libraries, Include the Libraries you using in your project.
- Then Ok.
如果您没有第 3 方 jar,则忽略上述内容
- Then right-click on project, select the profile under deploy.
- Then Click finish to start deployment.
完成部署后,您会在项目/部署文件夹中看到 jar。
关于java - 使用 JDeveloper 构建 Java 整个项目 jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10240703/