Unable to understand what jdk location is

66,724

All ubuntu JRE and JDK installs gets stored in /usr/lib/jvm/.

You need to add the multi-arch specific JDK location to Idea12. For example, on 32-bit x86 Ubuntu installations, use /usr/lib/jvm/java-7-openjdk-i386.

Share:
66,724

Related videos on Youtube

Alex Malex
Author by

Alex Malex

Updated on September 18, 2022

Comments

  • Alex Malex
    Alex Malex over 1 year

    I have java installed correctly for sure.

    aaa@ubuntu:~$ whereis java
    java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java
    aaa@ubuntu:~$ whereis javac
    javac: /usr/bin/javac /usr/bin/X11/javac
    

    But when I'm trying to add the location of /usr/bin/java in IntellyJ Idea12 as a java project sdk, I can't do that because it requires the folder and /usr/bin/java is a file. Even if I specify /usr/bin, it says that it's not a valid location.

    So where is it located and how do I setup a location to be a java sdk for IntellyJ Idea12 or for Eclipse?

    UPDATE: The path "/usr/lib/jvm/" doesn't exist

    UPDATE2:

    I used this tutorial http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux

    • Admin
      Admin about 11 years
      How did you install jdk, using update-alternatives might help you.
  • Alex Malex
    Alex Malex about 11 years
    The path " /usr/lib/jvm/" doesn't exist.
  • Alex Malex
    Alex Malex about 11 years
    didn't I install it? Look at my update2
  • Magno C
    Magno C about 8 years
    Thanks. I just ls -lh /usr/lib/jvm/ and discover wich Java. Expected default-javabut found java-7-oracle. Solved.