在对 spark2 的代码进行一些更改后,我正在尝试构建一个 jar
我使用的命令是
build/mvn package -Dtest=none
我尝试编译但 mvn 无法找到 javac
[error] Cannot run program "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64/jre/bin/javac": error=2, No such file or directory
我确实将 javac 复制到该位置
[root@asoksat-openstack spark2]# cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64/bin/javac /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64/jre/bin/javac
这也无济于事;错误虽然改变了
[error] Error: Could not find or load main class com.sun.tools.javac.Main
[error] Compile failed at Jun 18, 2021 4:01:00 AM [3.930s]
我该如何进行?