从网上下了个程序编译提示:
Note: Puzzle.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
运行是提示
Exception in thread "main" java.lang.NoSuchMethodError:main
这是什么原因啊,应该如何解决呢?
这个错误也没看懂是什么意思,希望朋友们帮解决一下。
...全文
813打赏收藏
不知道这是什么错误,应该怎么改正
从网上下了个程序编译提示: Note: Puzzle.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 运行是提示 Exception in thread "main" java.lang.NoSuchMethodError:main 这是什么原因啊,应该如何解决呢? 这个错误也没看懂是什么意思,希望朋友们帮解决一下。
Note: Puzzle.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
你的代码中用了一些不再推荐使用的元素,通常是因为这些元素很危险或存在更好的选择,这里只是提示而已,并没有报错
Exception in thread "main" java.lang.NoSuchMethodError:main
找不到main方法,看看是不是没有main方法