如果你在 Ubuntu 软件中心安装过 OpenJDK,请先使用如下命令将其删除: $ sudo apt-get purge openjdk* 转载于:https://www.cnblogs.com/kingsonfu/p/10629668.html