参考:https://github.com/SpencerPark/IJava
已安装java,版本如下:
[root@localhost ~]# java -version
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
二、java核心下载:
(python) [root@localhost ~]# wget https://github.com/SpencerPark/IJava/releases/download/v1.2.0/ijava-1.2.0.zip
三、安装过程
1、解压:
(python) [root@localhost ~]# unzip ijava-1.2.0.zip
生成java目录和install.py安装文件
2、执行安装:
(python) [root@localhost ~]# python install.py --sys-prefix
install.py:164: DeprecationWarning: replace is ignored. Installing a kernelspec always replaces an existing installation
install_dest = KernelSpecManager().install_kernel_spec(
Installed java kernel into "/root/