使用 JDeveloper 构建 Java 整个项目 jar [英] Build Java entire project jar using JDeveloper
问题描述
我正在使用 JDeveloper 11g 开发桌面应用程序.我想制作可以在 java 环境中运行的整个项目 jar .. 如果我只使用标准的 Java 库 jar 工作正常但我的项目包含外部库,如 JfreeChart、Comm、Hibernate3 等......当我尝试制作 jar 时它显示了错误,我如何制作我的项目的整个 jar 以及外部库的.
谢谢
请按照以下说明操作..
<块引用>- 右键单击项目并选择属性.
- 点击部署,通过输入部署配置文件类型和名称来设置新部署.
- 现在在屏幕上编辑部署配置文件.
- 选择 Jar Options 并指定您的
main
类.
如果您有 3rd 方罐子,请遵循
<块引用>- 选择文件组,然后单击新建.
- 选择依赖关系分析并确定.
- 然后在您创建的新文件组下选择贡献者.
- 文件的文件标签
- 库的库选项卡,包括您在项目中使用的库.
- 那好吧.
如果你没有 3rd party jar 则忽略上面的
<块引用>- 然后右键单击项目,选择部署下的配置文件.
- 然后点击完成开始部署.
完成部署后,您会在项目/部署文件夹中看到 jar.
I am using JDeveloper 11g to develop a desktop application. I want to make entire project jar which is run-able in java environment.. if I use only standard Java library jar works fine but my project contains external library like JfreeChart, Comm, Hibernate3 etc etc... when I try to make jar Its shows errors how can I make entire jar of my projects along with external library's.
thank you
Please follow the below instructions..
- 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.
If you have 3rd party jar then follow
- 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.
If you don't have 3rd party jar then ignore the above
- Then right-click on project, select the profile under deploy.
- Then Click finish to start deployment.
After finish deployment you see the jar in your project/deployment folder.
这篇关于使用 JDeveloper 构建 Java 整个项目 jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!