I know this is silly, but I've installed Oracle's Java 8 JDK long time ago, and I'm trying to setup my intelliJ Idea IDE to fetch the JDK, the problem is I can't figure out where is it exactly located.
I've tried using $whereis java
and $readlink -f $(which java)
, but they all point to the JRE not to the JDK.
My /usr/lib/jvm/java-8-oracle
folder doesn't have a JDK folder, and $JAVA_HOME
points to the path mentioned above.
I'm sure that I have a JDK as I am able to javac any .java file, but I don't really know where the JDK is.
I've looked at different answers on SO, but none of them seems to solve my silly problem.
Any ideas?
Update: I tried this solution but it still points me to the JRE location.