Thứ Hai, 3 tháng 7, 2017

[Java] Error: How To Fix The libs.CopyLibs.classpath Problem in Netbeans

Đây là thông báo lỗi:
Z:\work\workspaces\winery\winery\winery-war\nbproject\build-impl.xml:347: The libs.CopyLibs.classpath property is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
of NetBeans IDE installation and is usually located at
<netbeans_installation>/java<version>/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar


Vào thư mục cài đặt Netbeans, thông thường ở trong ổ đĩa C, thư mục program file (x86) --> thư mục Netbeans rồi tiếp đến các thư mục như sau
C:\program files (x86)\NetBeans 7.4\java\ant\extra\org-netbeans-modules-java-j2seproject-copylibstask.jar

Coppy đường dẫn này
Vào netbeans, mở tools --> Options --> find Ant

Thay thế vào chỗ property và thêm vào libs.Copylibs.classpath= đường dẫn đã copy ở trên
Chú ý trong win XP hoặc linux phải thay dấu "\" thành dấu "/"
Nhấn apply và hoàn tất.

1 nhận xét: