Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/322.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我能';t在clean&;之后运行jar文件;建造?_Java_Netbeans_Compiler Warnings - Fatal编程技术网

Java 我能';t在clean&;之后运行jar文件;建造?

Java 我能';t在clean&;之后运行jar文件;建造?,java,netbeans,compiler-warnings,Java,Netbeans,Compiler Warnings,当我尝试编译我的NetBeans项目时,我得到一条构建成功的消息 但我试着清理和建造我得到了这个信息: 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

当我尝试编译我的NetBeans项目时,我得到一条
构建成功的消息

但我试着清理和建造我得到了这个信息:

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.

在此之后,我尝试运行JAR文件,但是
javaw.exe
进程没有响应

您到底不明白什么?您使用的是不推荐使用的API,它不再被认为是安全的/更新的/有用的,编译器只是告诉您应该使用更新的API(每次一些Java API不推荐使用时,都会有新的API使用它的功能)。你们总是听编译器的,因为编译器总是正确的。如果使用-Xlint:deprecation参数重新编译,您可以看到哪些API已被弃用并替换它们