Answer the question
In order to leave comments, you need to log in
How to properly set up Intelij IDEA on Ubuntu?
Good day.
There was a small issue that I've never had before: jdk loading issue in ideas.
Loaded java through the terminal - everything loaded (for the sake of verification, I compiled the class in the terminal).
I downloaded the idea and uploaded it. When specifying the JDK, the path was set: /usr/lib/jvm/java-8-oracle , but the idea does not recognize this path as necessary.
The question arises: Where then is the desired JDK folder, if the JDK itself was downloaded through the terminal using the following commands?
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Answer the question
In order to leave comments, you need to log in
IDEA uses its JDK by default, which is located in $IDEA_HOME/jre. In the latest versions, this is initially Oracle Java 8.
But for projects, you need to specify the required JDK through the project settings (File> Project Structure> Project> Project SDK)
When specifying the JDK, the path was set: /usr/lib/jvm/java-8-oracle
export JAVA_HOME=/opt/oracle/jdk1.8.0_05
export JDK_HOME=$JAVA_HOME
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question