Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (10.2k points)

Intellij Idea 14.1.4 Mac OS X Yosemite 10.10.3 and later.

From the IDE:

Import Project ->

(Chosen directory to import) ->

Import project from external model, Gradle ->

Gradle Home: /usr/local/Cellar/gradle/2.4/libexec

Gradle JVM: Use JAVA_HOME (not defined yet)

From shell:

echo $JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

(defined in .profile: export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"

What am I missing. I have checked other discussions in SO, for example, Intellij JAVA_HOME variable, but don't have Project SDK prompt.

1 Answer

0 votes
by (46k points)

You need to set up an SDK for Java projects as @rizzletang said, but you don't require to produce a new project, you can prepare it from the Welcome screen.

 

On the bottom right, choose Configure > Project Defaults > Project Structure: 

image

Choosing the Project tab on the left will point that you possess no SDK chosen:

enter image description here

Just succeed the New... button on the right-hand side of the dropdown and designate it to your JDK. After that, you can operate back to the import screen and it should just reveal up.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...