我在Netbeans上编码,这个错误意味着什么,我可以在不重置的情况下解决它吗?
error: package com.sun.corba.se.spi.presentation.rmi does not exist
import static com.sun.corba.se.spi.presentation.rmi.StubAdapter.request;
D:\Unknown\Documents\Netbeans_Projects\Roar_1\src\userclasses\StateMachine.java:14: error: static import only from classes and interfaces
import static com.sun.corba.se.spi.presentation.rmi.StubAdapter.request;
Note: D:\Unknown\Documents\Netbeans_Projects\Roar_1\src\userclasses\StateMachine.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
D:\Unknown\Documents\Netbeans_Projects\Roar_1\build.xml:50: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)
我附上下面的屏幕
可能是因为我选择了>一旦我的代码中出现了一些红色的符号错误,就会在com.sun.corba.se.spi.presentation.rmi.StubAdapter.request
为“请求”框添加导入:
答案 0 :(得分:3)
您的类文件中似乎有错误的import语句。查找如下所示的行:
import com.sun.corba.se.spi.presentation.rmi.StubAdapter.request;
或
import static com.sun.corba.se.spi.presentation.rmi.StubAdapter.request;
只需移除该行即可消除错误。