Buildship Issue when loading my IDE


(Eddie Lei) #1

Hello,

I would like to ask about a problem I am facing related to Buildship.

I downloaded an installed the Buildship plugin for gradle onto my JBoss Dev Studio.

However, every time JBoss loads, I get the error:

“Supplied javaHome is not a valid folder. You supplied: C:\Program Files\Java\jdk1.8.0_91”

Can someone advise on how I might be able to resolve this?

I do know that I have a jdk1.8.0_91 in my Program Files (x86) folder. So I am not quite sure how C:\Program Files\Java\jdk1.8.0_91 got generated?

Thanks,
Eddie Lei


(Stefan Oehme) #2

Hi Eddie,

I recommend removing the JDK definition by re-importing the project, going to the second page of the import wizard and emptying the “java home” line.

Instead, define the Java home that Gradle should use in your <userHome>/.gradle/gradle.properties using org.gradle.java.home=.... This way it will be the same both from the command line and the IDE.

Cheers,
Stefan


(Eddie Lei) #3

Hi Stefan,

Thank you for your response it really helped!