Skip to content
This repository was archived by the owner on Jul 9, 2022. It is now read-only.
This repository was archived by the owner on Jul 9, 2022. It is now read-only.

Eclipse Gradle import error with Java 1.8: Unrecognized VM option 'MaxPermSize=256m' #78

@mrserverless

Description

@mrserverless

I'm using:

  • Mac OSX Yosemite
  • Java 1.8_25
  • Eclipse IDE for Java Developers 4.4.1.20140925-1820
  • Gradle IDE 3.6.3.201411271013-RELEASE

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:

!ENTRY org.springsource.ide.eclipse.gradle.core 4 0 2015-01-07 11:12:56.677
!MESSAGE Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Unrecognized VM option 'MaxPermSize=256m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

!STACK 0
java.lang.reflect.InvocationTargetException
    at org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:112)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.core.runtime.CoreException: Unable to start the daemon process.

I tried various work arounds which didn't work:

  • setting Java version to 1.7 in Eclipse preferences
  • removing all references to MaxPermSize in eclipse.ini
  • setting my JAVA_HOME environment variable to 1.7

In the end I had to hack the Info.plist file to force Java 1.7:

 <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin/java</string>

This isn't very elegant. The eclipse gradle plugin should support Java 1.8 out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions