Only openjdk-11-jdk and newer seem to be available. Is there any way to install the OpenJDK 8? Preferably without adding a PPA.
A few days ago, I started getting the following error when performing apt-get update
:
E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 / 9 Installer PPA' to 'Oracle Java (JDK) 8 Installer PPA'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
According to WebUpd8, that, that, that, and that page, I don't seem to need a key for this (anymore).
If I remove the key
/etc/apt/trusted.gpg.d/webupd8team_ubuntu_java.gpg
pub rsa1024 2010-05-04 [SC]
7B2C 3B08 89BF 5709 A105 D03A C251 8248 EEA1 4886
uid [ unknown] Launchpad VLC
with apt-key del
, I (obviously) get
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Thanks for any further help with this.
How can I download the source code of Java on my local machine, so I can reference it in an IDE?
I am a new user of Linux, it has been recommended to me by my friend.
He told me to install software called IntelliJ Idea IDE.
Well I have been following the tutorial. But now when I try to open "idea.sh", an error message pops-up:
'tools.jar' is not in IDEA classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
Please remember that I'm new to Ubuntu and I'm planning for a nice long stay once I get myself into it :)
Also I do not know if I am running a correct Java6 JDK.
When I do java -version
, this is what I get:
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
Thank You for reading this and I hope I will get a nice response.
I didn't find any related articles about How to remove Oracle JDK. There are some related articles but they didn't solve the problem.
I installed Oracle JDK tarball file from Oracle site by following this article How do I install Oracle Java JDK 7. It was very helpful. But still I don't know what I should do in order to uninstall Oracle JDK.