所以我刚刚安装了 Ubuntu,这是我第一次在 Linux 环境下工作,所以请容忍我的菜鸟态度。
无论如何,我直接从 Oracle 下载了 Java8JDK,但是我知道也有一个用于 Java8的 OpenJDK。我有两个问题。
Oracle 版本和 OpenJDK.Pro/Cons 之间的区别是什么?
当我尝试使用 OpenJDK 8时,我做不到。我粘贴终端命令和我在这里得到的错误消息,希望得到建议。同样,对于 Linux 来说非常新鲜,我在我的第一个 Linux 发行版上用了不到一个小时。
user@computer:~/Java$ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk-8-jdk
Any help would be appreciated. In the meantime, I'm just gonna use the Oracle package. Thanks.
Edit:
So, now I have a new problem. I installed OpenJDK 7, it came with Maven and just installed before I realized I was getting a two-for-one deal. Now I have JDK 7, and Eclipse, and Maven, and they're all working, but I'm stuck on JDK 7 rather than 8.
I saw that there's a link below, I intend to check it out in the morning, it's 2am and I'm tired right now. Any other advice for this new issue would be appreciated, otherwise I will definitely be checking out that link first thing in the morning.