-
Notifications
You must be signed in to change notification settings - Fork 108
Eclipse Gradle import error with Java 1.8: Unrecognized VM option 'MaxPermSize=256m' #78
Comments
Is that the entire stacktrace? I'd expect it to have more detailed location about exception origin as it most likely originates inside of Gradle tooling API implementation (when trying to start the daemon). This is most likely a problem with tooling API implementation rather than STS tooling (STS itself doesn't start the daemon, it is the Gradle tooling API that does that. From what you are saying, it looks like Gradle Tooling API is trying to pass maxpermsize option to JDK 8 which no longer supports that option. |
@kdvolder thanks for looking into this. Who should I raise the issue with for Gradle Tooling API? |
Normally you start by asking a question on gradle forum and it then gets converted into an issue. However, I'm not yet 100% sure this is a problem with gradle or with STS. Let me first try and reproduce the problem. I'll post back here later. |
I tried reproducing the problem but cannot. For me stuff is running just fine with Java 8. Maybe you are getting this vmarguments from somewhere else you customized long ago and forgot. Check the following in workspace preferences.
Window >> Preferences >> Installed JREs. If you select a JRE and click 'Edit', theres a 'DefaultVM arguments section. Check what is in there.
Window >> Preferences >> Gradle >> Arguments Check if maybe the permgen argument is being set there.
Check if maybe you have existing Gradle launch configs that supply custom VM arguments: Delete any old 'Gradle' launch configs you see there.
See the docs here: http://www.gradle.org/docs/current/userguide/gradle_daemon.html
Read that and check your gradle.properties (maybe in the project you are importing). Hopefully in one of these places you will find who is supplying the 'bad' VM arguments. |
I'm using:
My JAVA_HOME is set to 1.8. Downloaded Eclipse 4.4.1 and installed Gradle IDE. When importing a gradle project I get the following error:
I tried various work arounds which didn't work:
In the end I had to hack the Info.plist file to force Java 1.7:
This isn't very elegant. The eclipse gradle plugin should support Java 1.8 out of the box.
The text was updated successfully, but these errors were encountered: