标签: java eclipse
我正在尝试从命令行运行Eclipse批处理编译器。所以我的命令如下:java -jar org.eclipse.jdt.core_xxx.jar -classpath my/path/to/first/.jar:rt.jar file_in_current_directory.java。但是我得到这个import xyz cannot be resolved错误,即使该类存在于类路径中。身体有帮助吗?我在Linux Redhat工作。提前谢谢!
java -jar org.eclipse.jdt.core_xxx.jar -classpath my/path/to/first/.jar:rt.jar file_in_current_directory.java
import xyz cannot be resolved