由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Running error: Editor does not contain a main type
相关主题
eclipse text editorA simple question
Re: Do anyone know a good websit containing the source code of Java请问那里有tools.jar 的源程序?
What general services does a container provide foparameters to main????
What specific services does a container provide fjava directory?
EJB containerclone() question
EJB框架示意图Question on J2EE container
Re: help! how to make jar work?[转载] JSP access database的问题
jar 的问题, 路径有问题? 大家帮忙看看是啥毛病?To call main method from another class
相关话题的讨论汇总
话题: employee话题: main话题: editor话题: contain话题: staff
进入Java版参与讨论
1 (共1页)
I*****y
发帖数: 6402
1
在eclipse里写程序,然后运行,可是竟然出现这样的错误:Editor does not contain
a main type. 请问咋回事啊?有main method啊
下面是我的程序(练习题)
import java.util.*
public class EmployeeTest
{
public static void main(String[] args)
{
Employee[] staff = new Employee[3];

staff[0] = new Employee("John F C", 35000, 1987, 12, 13);
staff[1] = new Employee("Tony Success", 90000, 1989, 12, 01);
staff[2] = new Employee("Jennifer N", 1000, 1982, 3, 15);
p******e
发帖数: 897
2
need to specify main class on run configuration?

contain

【在 I*****y 的大作中提到】
: 在eclipse里写程序,然后运行,可是竟然出现这样的错误:Editor does not contain
: a main type. 请问咋回事啊?有main method啊
: 下面是我的程序(练习题)
: import java.util.*
: public class EmployeeTest
: {
: public static void main(String[] args)
: {
: Employee[] staff = new Employee[3];
:

1 (共1页)
进入Java版参与讨论
相关主题
To call main method from another classEJB container
help with java scriptEJB框架示意图
Re: 怎样不用main(String args[])输出"hello worlRe: help! how to make jar work?
stupid questions:XP中,双击.jar文件,为什么不运行jar 的问题, 路径有问题? 大家帮忙看看是啥毛病?
eclipse text editorA simple question
Re: Do anyone know a good websit containing the source code of Java请问那里有tools.jar 的源程序?
What general services does a container provide foparameters to main????
What specific services does a container provide fjava directory?
相关话题的讨论汇总
话题: employee话题: main话题: editor话题: contain话题: staff