RSS

Gradle ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java

14 Oct

When using gradle build, we would have faced this error

JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java though we have already set the JAVA_HOME correctly

The reason might be gradle itself tries to export java home once again

Just open /usr/bin/gradle file and find the line

export JAVA_HOME = /usr/lib/jvm/default-java and comment it out

Now it should work fine

 
Leave a comment

Posted by on October 14, 2014 in Gradle

 

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: