将共享项目添加到库时使用NetBeans 6.8的Java应用程序中的符号错误 [英] Symbol error in java application using netbeans 6.8 when adding a shared project to library

查看:74
本文介绍了将共享项目添加到库时使用NetBeans 6.8的Java应用程序中的符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,该项目在其他三个项目之间具有共享功能,并且已将它们链接到现有项目,就像我通常使用library文件夹的add project功能一样.

这一切过去都是有效的,但是当我昨天启动Netbeans时,它只是不起作用,因为即使其他项目链接在一起,其他项目也无法编译.它可以识别程序包-只是无法识别实际的类本身,而且增加了一些类的怪异之处.

我已经检查了共享项目的dist文件夹,并且Shared.jar文件存在.我还检查了Jar,还有其他未被识别的类也在那里.

有什么建议吗?

替代文本http://inverse.seednet.eu/snaps/duvc6r.png

解决方案

我必须重新安装netbeans才能解决此问题

解决方案

这很可能是6.8中的一个错误,因为我遇到了同样的问题,并且只能通过重新创建项目来解决它,这是一个相当快的过程,只需重新导入源,然后添加其依赖的JAR.

要确认这种情况,您只需要查看NetBeans找不到的导入,然后转到包含的JAR,查看该类是否确实存在(如果存在),那么它应该能够找到它. /p>

I have a project which has shared functionality between three other projects and have linked these to existing projects as I normally would using the add project functionality of the libraries folder.

This all used to work however when I started up Netbeans yesterday it just wasn't working as in the other projects won't compile even though the projects are linked. It can recognise the packages - just the actual classes themselves were not recognised... and to add to the weirdness some of the classes are getting picked up fine.

I have checked the dist folder of the shared project and the Shared.jar file exists. Also I have checked the Jar and the other classes that are not being recognises are there also.

Any suggestions?

alt text http://inverse.seednet.eu/snaps/duvc6r.png

Solution

I had to reinstall netbeans to get this solution resolved

解决方案

This is most likely a bug in 6.8, as I have ran into the same problem and I only solved it by recreating the project, was a fairly fast process, only had to re-import the sources and then add the JARs on which it depends.

To confirm this case you only have to see the imports that NetBeans did not find, and then go to the included JARs and see if the class really is there, if it is, then it should be able to find it.

这篇关于将共享项目添加到库时使用NetBeans 6.8的Java应用程序中的符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆