一个运行问题。 [英] A Run question.

查看:63
本文介绍了一个运行问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我想运行我的java程序。

我正在使用Eclipse作为我的应用程序。

当我想运行我的程序时,我右键单击鼠标并选择

运行为(向下箭头)运行...

屏幕上显示一个名为Run的窗口。

在Main类中:我选择通过按下Search ...按钮来制作

这样做我有一个可供选择的选项列表。

匹配类型有我的项目(Employee)或另外有

下的---- Workspace匹配--- ---再次列出(有时列出)


问题是我使用哪一个。我在Project Window中得到一个Erros。

Erros存在于必需的Project.FirstJavaProject中。

Contune启动?

我无法弄清楚错误正在考虑我正在使用Eclipse。



感谢

damon

PS无论我使用哪一个,我都会收到错误。

I have a question in which I want to run my java program.
I''m using Eclipse as my application.
When I want to run my program I do a right-click on the mouse and choose
Run as (arrow down to) run...
A Window called Run shows on the screen.
In the Main class: I have a chose to make by pushing the Search...button
In doing so I have a list of options to chose from.
Matching types which has my project (Employee) or there is another on
under ----Workspace matches------ which again it is listed (Sometimes it listed)

Question is which one do I use. I get an Erros in Project Window.
Erros exist in required Project.FirstJavaProject.
Contune launch?
I can not figure out where the errors are at considering I''m usign Eclipse.



thanks
damon
PS no matter which one I use I get an error.

推荐答案

当你导航到Window>显示视图>问题你可以看到详细信息

所有开放项目中的所有问题。点击其中一个问题,Eclipse

将为您打开相应的来源。请注意,每个

源的左边框显示包含错误的行。如果你将鼠标移到

那些小图标上,你会再次得到错误的错误描述。


亲切的问候,


Jos
When you navigate to Window > Show View > Problems you can see details
of all problems in all open projects. Click on one of the problems and Eclipse
will open the corresponding source for you. Note that the left border of every
source show you the lines which contain errors. If you move your mouse over
those little icons you get a nice description of the error again.

kind regards,

Jos


谢谢Jos ...

我做了你告诉我做的事......

错误被列为

java.lang.NoSuchMethodError:main

线程中的异常main


如何查找如何解决此错误。

您是否需要我发布我的代码....


谢谢

nomad
Thanks Jos...
I did what you told me to do...
the error was listed as
java.lang.NoSuchMethodError: main
Exception in thread "main"

How do I go about find out how to fix this error.
Do you need me to post my code....

thanks
nomad



谢谢Jos ...

我做了你告诉我要做的事......

错误被列为

java.lang.NoSuchMethodError:main

线程main中的异常


如何查找如何解决此错误。

您是否需要我发布我的代码....


谢谢

nomad
Thanks Jos...
I did what you told me to do...
the error was listed as
java.lang.NoSuchMethodError: main
Exception in thread "main"

How do I go about find out how to fix this error.
Do you need me to post my code....

thanks
nomad



JVM(Java虚拟机)总是通过调用
该类中的public static void main(String [] args)方法。在你的情况下

特定类不包含这样的方法(NoSuchMethodError:main)


你必须定义该方法。


亲切的问候,


Jos

The JVM (Java Virtual machine) always starts one of your classes by calling
the public static void main(String[] args) method in that class. In your case
that particular class doesn''t contain such a method (NoSuchMethodError: main)

You have to define that method.

kind regards,

Jos


这篇关于一个运行问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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