java中的问题
我在导入swing.*;这个包出现了如下提示:Multiplemarkersatthisline-Accessrestriction:TheconstructorJFra...
我在导入swing.*;这个包出现了如下提示:
Multiple markers at this line
- Access restriction: The constructor JFrame() is not accessible due to restriction on required library C:
\Program Files\Java\jre1.7.0\lib\rt.jar
- Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files
\Java\jre1.7.0\lib\rt.jar
- Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files
\Java\jre1.7.0\lib\rt.jar
--------------------------------------------------------------------
源码如下:
import javax.swing.JFrame;
public class asdf {
public static void main(String[] args) {
JFrame f=new JFrame();
}
}
哪位大侠知道,快来帮帮忙吧!
感激不尽! 展开
Multiple markers at this line
- Access restriction: The constructor JFrame() is not accessible due to restriction on required library C:
\Program Files\Java\jre1.7.0\lib\rt.jar
- Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files
\Java\jre1.7.0\lib\rt.jar
- Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files
\Java\jre1.7.0\lib\rt.jar
--------------------------------------------------------------------
源码如下:
import javax.swing.JFrame;
public class asdf {
public static void main(String[] args) {
JFrame f=new JFrame();
}
}
哪位大侠知道,快来帮帮忙吧!
感激不尽! 展开
3个回答
展开全部
你的path等没设置好~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询