简体   繁体   English

Java Eclipse运行项目为主要类型提供消息搜索

[英]Java Eclipse running project gives message searching for main types

I'm trying to run a project which a friend of mine send me, but I got a strange message which I've never seen before and not sure what to do to run the project without any errors. 我正在尝试运行一个我朋友发给我的项目,但是我收到了一条我以前从未见过的奇怪信息,并且不确定如何运行项目而没有任何错误。 Here is what I got : 这是我得到的:

日食项目

and I'm not really sure which one to choose so I can run the program. 而且我不确定选择哪一个,所以我可以运行该程序。 It's some kind of translator of C language. 它是C语言的某种翻译。

Any suggestions? 有什么建议么?

Well it could be one between Parser and Scanner , but you should type org.aj.unitrans in the search filter, so that only classes in that package are displayed. 它可能是ParserScanner之间的一个,但您应该在搜索过滤器中键入org.aj.unitrans ,以便只显示该包中的类。 If the filter finds no matches it means that there's no public static void main(String[] args) method in those packages, and they're probably to be used as a library by other programs. 如果过滤器没有找到匹配项,则意味着这些包中没有public static void main(String[] args)方法,并且它们可能被其他程序用作库。

In Select type search window type your "class name" and then you will get a option like "class name- project name". 在选择类型搜索窗口中键入您的“类名”,然后您将获得类似“类名 - 项目名称”的选项。 Select and then click ok 选择,然后单击“确定”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM