Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse Oxygen can not add Groovy-plugin along with Java 9 #318

Closed
anbusampath opened this issue Jul 5, 2017 · 3 comments
Closed

Eclipse Oxygen can not add Groovy-plugin along with Java 9 #318

anbusampath opened this issue Jul 5, 2017 · 3 comments
Assignees

Comments

@anbusampath
Copy link

image

@eric-milles
Copy link
Member

Both features patch the same JDT plug-in. Only one patch per plug-in can be made.

@reckart
Copy link

reckart commented Sep 23, 2017

For me, the JDK 9 support installed after also upgrading to the latest Groovy plugin builds. However, after that hell broke loose and hardly anything worked anymore. No idea though if that was due to the JDK9 support itself or due to a conflict between the JDK9 and Groovy JDT patches.

A restore of the last working configuration was not possible since Eclipse claimed it could not find any repo with previous Groovy plugin builds. So I had to restore Eclipse from a backup to get it back working.

eric-milles added a commit that referenced this issue Sep 25, 2017
@eric-milles
Copy link
Member

eric-milles commented Sep 26, 2017

If you plan to run Eclipse itself under Java 9 with Groovy-Eclipse installed, I recommend enabling access for the Groovy compiler/runtime in your eclipse.ini -vmargs section to prevent error messages:

--add-modules=ALL-SYSTEM
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.invoke=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.util.regex=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED

These are also good command line defaults for your Installed JRE, so that anything launched from Eclipse using Java 9 (Groovy script, JUnit tests, etc.) will have proper Groovy runtime behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants