NetBeans WebApplication



我正在使用hibernate的NetBeans WebApplication。修改两行代码后,我得到了下一个错误:

ant -f C:UsersUserAssignmentsAssignmentZaposleni -Dnb.internal.action.name=debug -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=C:UsersUserAssignmentsAssignmentZaposleni debug
C:UsersUserAssignmentsAssignmentZaposleninbprojectbuild-impl.xml:797: 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
BUILD FAILED (total time: 0 seconds)

在更改代码之前,编译正常无误。修改后的代码如下:

前面的代码:

mySQL=Restrictions.sqlRestriction(upit.substring(upit.indexOf("WHERE")));
    criteria.add(mySQL);

后面的代码:

mySQL=Restrictions.sqlRestriction(upit.substring(upit.indexOf("WHERE")));
    criteria.add(mySQL);
List list =session.createCriteria(Zaposleni.class).add(mySQL).list();

注释时,更改错误仍然存在!?有人能帮我一下吗?谢谢。

也许您有自动NetBeans更新,并且在您更改Java代码期间NetBeans进行了一些更新并更改了配置文件。不妨试试这个,它可能会有帮助:

右键单击项目名称/Properties/Libraries/Compile/

如果没有"CopyLibs Task",按:

AddLibrary,选择CopyLib Task,最后AddLibrary/OK

相关内容

  • 没有找到相关文章

最新更新