标题:[求助]请各位大哥给看看问题在那里?不能运行程序
取消只看楼主
lanshetou
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-6-1
结帖率:0
 问题点数:0 回复次数:1 
[求助]请各位大哥给看看问题在那里?不能运行程序

class Mm
{
public Mm(int a,int b)
{
c=a;
d=b;
}
protected int c;
protected int d;
}
public class Pk {

/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
Mm mm=new Mm(1,2);
System.out.println(mm.c);
System.out.println(mm.d);
}

}


程序运行的提示是Could not find the main class. Program will exit.

搜索更多相关主题的帖子: 运行 
2007-06-07 18:13
lanshetou
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-6-1
得分:0 
是Pk类,不过刚才我事试了一下,在默认的包中又可以运行了,刚才在新建的包中,谢谢你2楼!

2007-06-07 19:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-145736-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.572450 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved