使用JDeveloper构建Java整个项目jar [英] Build Java entire project jar using JDeveloper
问题描述
我正在使用JDeveloper 11g开发桌面应用程序。我想制作在java环境中可运行的整个项目jar ..如果我只使用标准Java库jar工作正常但我的项目包含外部库如JfreeChart,Comm,Hibernate3等等...当我尝试制作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.
谢谢
推荐答案
请按照以下说明操作..
Please follow the below instructions..
- 右键单击项目并选择属性。
- 单击部署,通过输入部署配置文件类型和名称来设置新部署。
- 现在在屏幕上编辑部署配置文件。
- 选择Jar选项并指定
main
class。
- 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.
如果你有第三方jar然后按照
- 选择文件组点击新建。
- 选择依赖性分析,然后确定。
- 然后在您创建的新文件组下选择贡献者。
- Select File group the click on New.
- Select Dependency Analysis and Ok.
- Then select the Contributors under new file group you have created.
- 文件的文件选项卡
- 库的库选项卡,包括您在项目中使用的库。
如果您没有第三方jar,则忽略上述
- 然后右键单击项目,选择部署下的配置文件。
- 然后单击完成开始部署。
完成部署后,您会在项目/部署文件夹中看到jar。
After finish deployment you see the jar in your project/deployment folder.
这篇关于使用JDeveloper构建Java整个项目jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!