我正在NetBeans 7.1 Beta上编译我的代码。获得关注,但在指定位置未创建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:


请给我建议。

最佳答案

我认为您的库链接已损坏,请检查并在项目中添加库。然后使您的项目清洁并构建。请记住,Jar文件始终位于dist文件夹中。对于此打开的NeatBeans项目文件夹,找到您的项目,然后打开它,找到dist文件夹。要逐步创建.Jar文件,请检查以下链接。

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

希望对您有帮助。
谢谢。

07-26 09:27