简体   繁体   English

无法使用Netbeans 7.1 Beta版本编译和创建jar文件

[英]Not able to Compile and Create jar file using Netbeans 7.1 Beta version

I am compiling my code on Netbeans 7.1 Beta. 我正在NetBeans 7.1 Beta上编译我的代码。 Getting Following but No copyExample.jar is created at specified Location. 获得关注,但未在指定位置创建copyExample.jar

Created dir: E:\NIRAJ\Lodable_Creation_java\build
Updating property file: E:\NIRAJ\Lodable_Creation_java\build\built-jar.properties
Created dir: E:\NIRAJ\Lodable_Creation_java\build\classes
Created dir: E:\NIRAJ\Lodable_Creation_java\build\empty
Compiling 1 source file to E:\NIRAJ\Lodable_Creation_java\build\classes
Copying 15 files to E:\NIRAJ\Lodable_Creation_java\build\classes
Copied 5 empty directories to 1 empty directory under E:\NIRAJ\Lodable_Creation_java\build\classes
compile:
Created dir: E:\NIRAJ\Lodable_Creation_java\dist
Copying 1 file to E:\NIRAJ\Lodable_Creation_java\build
To run this application from the command line without Ant, try:
java -jar "E:\NIRAJ\Lodable_Creation_java\dist\copyexample.jar"
jar:

Please suggest me. 请给我建议。

I think your library links is broken check it and add library in project. 我认为您的库链接已损坏,请检查并在项目中添加库。 Then make your project clean and build. 然后使您的项目清洁并构建。 One thing keep in your mind Jar file always in dist folder. 请记住,Jar文件始终位于dist文件夹中。 For this open NeatBeans project folder find your project and opent it you find dist folder. 对于此打开的NeatBeans项目文件夹,找到您的项目,然后打开它,找到dist文件夹。 for stepwise creation of .Jar file check following link. 要逐步创建.Jar文件,请检查以下链接。

http://java4projects.blogspot.in/2012/04/how-to-create-jar-file-in-netbeans.html http://java4projects.blogspot.in/2012/04/how-to-create-jar-file-in-netbeans.html

Hope it will help you. 希望对您有帮助。 Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM