org.jdesktop.application软件包不存在 [英] org.jdesktop.application package doesn't exist

查看:358
本文介绍了org.jdesktop.application软件包不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天来我正在构建一个Java桌面应用程序,一切进展顺利.

I was building a java desktop application from few days and all was going well.

但是今天,当我打开Netbeans并编译文件时,出现了以下编译错误:

But today, when I opened the Netbeans and compiled a file, the following compilation error occrured:

Compiling 9 source files to C:\Documents and Settings\Administrator\Desktop\EMS\build\classes
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSAboutBox.java:7:             package org.jdesktop.application does not exist
import org.jdesktop.application.Action;
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSApp.java:7: package org.jdesktop.application does not exist
import org.jdesktop.application.Application;
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSApp.java:8: package org.jdesktop.application does not exist
import org.jdesktop.application.SingleFrameApplication;
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSApp.java:13: cannotfind symbol
symbol: class SingleFrameApplication
public class EMSApp extends SingleFrameApplication {

C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSView.java:7: package org.jdesktop.application does not exist
import org.jdesktop.application.Action;
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSView.java:8: package org.jdesktop.application does not exist
import org.jdesktop.application.ResourceMap;
C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EMSView.java:9: package org.jdesktop.application does not exist

我以前使用的是相同的代码,但没有发生这样的错误.当我检查库时,那里是org.jdesktop.application程序包,当我们导入该程序包时,netbeans会在建议中显示"application"程序包.

I was using the same code before but no error occured like this. When I checked the libraries, then the org.jdesktop.application package is there and when we import that package, the netbeans show the "application" package in suggestion.

然后,为什么在包装已存在的地方就出现错误.如果该软件包不在库中,则Netbeans会在import语句下显示一条红线,但也不会显示该红线.

Then why the error is there when the package is already there. If the package was not in the library, then Netbeans would have shown a red line under the import statement, but it is not showing that red line too.

问题出在哪里?

推荐答案

NetBeans具有自发拧东西的习惯.清理项目并重新构建.

NetBeans has these habit of spontaneously screwing things. Clean your project and rebuild it afresh.

如果没有帮助,请清理您的工作区.

If it doesn't help, clean your workspace.

这篇关于org.jdesktop.application软件包不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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