原因是jdk版本不对

(base) gw00241401@gw00241401-pc:/data/tools/byzer-notebook$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/jdk-11-oracle-x64/bin/java          184721408 auto mode
  1            /usr/lib/jvm/java-17-openjdk-amd64/bin/java      1711      manual mode
  2            /usr/lib/jvm/java-21-openjdk-amd64/bin/java      2111      manual mode
* 3            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  4            /usr/lib/jvm/jdk-11-oracle-x64/bin/java          184721408 manual mode

choice :3

就解决了

Logo

更多推荐