Eclipse Java错误:此选择无法启动,最近没有启动 [英] Eclipse Java error: This selection cannot be launched and there are no recent launches
本文介绍了Eclipse Java错误:此选择无法启动,最近没有启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个错误不断出现。我已经尝试运行我的java项目(而不是Android),甚至下拉运行按钮不起作用,因为它说不适用。
解决方案
Eclipse需要在项目的一个源文件中看到一个主要方法,以确定它是什么样的项目它可以提供正确的运行选项:
public static void main(String [] args)
如果没有该方法签名(或该方法签名的格式不正确的版本),则运行方式菜单项不会显示任何运行选项。
I have looked everywhere on the internet and tried everything the forums say to do and nothing works. This error keeps coming up. I have tried running my java project (not for android) even the drop down run as button doesn't work because it says "none applicable".
解决方案
Eclipse needs to see a main method in one of your project's source files in order to determine what kind of project it is so that it can offer the proper run options:
public static void main(String[] args)
Without that method signature (or with a malformed version of that method signature), the Run As menu item will not present any run options.
这篇关于Eclipse Java错误:此选择无法启动,最近没有启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文