简体   繁体   English

清理和构建后我无法运行 jar 文件?

[英]I can't run the jar file after clean & build?

When I try to compile my NetBeans project I get a Build successful message.当我尝试编译我的 NetBeans 项目时,我收到一条Build successful消息。

But I try to clean and build I get this message:但我尝试清理和构建我收到此消息:

Note: C:\Rech\src\view\class.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

After this, I try to run the JAR file but the javaw.exe process has no response在此之后,我尝试运行 JAR 文件但javaw.exe进程没有响应

What exactly you do not understand?你到底有什么不明白? You use deprecated API, that is no longer considered safe/updated/useful and the compiler simply tells you that you should use newer API (and each time some Java API is deprecated, there is new one that takes its functionality).您使用不推荐使用的 API,它不再被认为是安全/更新/有用的,并且编译器只是告诉您应该使用更新的 API(并且每次不推荐使用某些 Java API,都会有新的 API 使用其功能)。 And you always listen to compiler, because compiler is always right.而你总是听编译器的,因为编译器永远是对的。 If you recompile with -Xlint:deprecation argument, you can see which APIs are deprecated and replace them.如果您使用 -Xlint:deprecation 参数重新编译,您可以查看哪些 API 已被弃用并替换它们。

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

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