gpt4 book ai didi

java - Eclipse Java 错误 : This selection cannot be launched and there are no recent launches

转载 作者:IT老高 更新时间:2023-10-28 20:56:52 27 4
gpt4 key购买 nike

我在互联网上到处寻找,并尝试了论坛所说的一切,但没有任何效果。这个错误不断出现。我试过运行我的java项目(不适用于android),即使下拉运行按钮不起作用,因为它说“不适用”。

最佳答案

Eclipse 需要查看项目源文件之一中的 main 方法,以确定它是什么类型的项目,以便它可以提供正确的运行选项:

public static void main(String[] args)

没有该方法签名(或该方法签名的格式错误版本),“运行方式”菜单项将不会显示任何运行选项。

关于java - Eclipse Java 错误 : This selection cannot be launched and there are no recent launches,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25858400/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com