Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse and OpenJDK 9(Problems with Eclipse Mars and OpenJDK 9 Early Access)
icon4.gif  Eclipse and OpenJDK 9 [message #1724876] Fri, 26 February 2016 17:00 Go to next message
Kenneth Benson is currently offline Kenneth BensonFriend
Messages: 2
Registered: February 2016
Junior Member
I am not a newbie to either Java programming or Eclipse. That said I've been looking at the OpenJDK Early Access builds and downloaded the latest to give it a once over. My problem started when I tried to run Eclipse to compile a test program. Eclipse died before really starting with an error stating that it didn't have a -XMaxPermSize parameter. After some digging I discovered that the MaxPermSize parameter to the Java vm was deprecated in Java 8 and has been removed in JDK 9 (see here: httx://openjdk.java.net/jeps/122).

JEPS-122 says to just remove the parameter for it to work, but how do I remove that from Eclipse as it is built into the startup? If this post could be moved/redirected to the teams that need to know I would appreciate it. And if they would tell me on the forum or email me how to fix it, I would appreciate that to! Very Happy

Kenneth Benson
phoenyx33@gmail.com
Re: Eclipse and OpenJDK 9 [message #1724891 is a reply to message #1724876] Fri, 26 February 2016 21:13 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 403
Registered: June 2014
Senior Member
Check the eclipse.ini for -XX:PermSize=64M (after -vmargs) and remove it. The eclipse.ini should have --launcher.XXMaxPermSize that tells the Eclipse launcher to determine if JVM supports -XX:PermSize and passes it on if if does.

That said, if you have not come across Wayne Beaton's blog posts on the subject, you may want to use them as a starting point, see https://waynebeaton.wordpress.com/2015/12/07/running-eclipse-neon-on-a-custom-java-9-image/

Jonah
Re: Eclipse and OpenJDK 9 [message #1724892 is a reply to message #1724891] Fri, 26 February 2016 21:13 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 403
Registered: June 2014
Senior Member
I should add if you want to launch Java 9 code from within Eclipse I think you need to install Java 9 Beta support (linked from Wayne's post): http://marketplace.eclipse.org/content/java-9-support-beta-neon
Re: Eclipse and OpenJDK 9 [message #1725033 is a reply to message #1724876] Mon, 29 February 2016 08:37 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6568
Registered: July 2009
Senior Member
Do yourself a favor and don't start learning a new language with an not
yet released version of java who brings with it a vast amount of changes
(you most likely only use if you are really deep down in java).

The main concepts you need to start learning have not changed between
Java8 and 9 all you might discover are not yet finished tools!

Tom

On 26.02.16 21:47, Kenneth Benson wrote:
> I am not a newbie to either Java programming or Eclipse. That said I've
> been looking at the OpenJDK Early Access builds and downloaded the
> latest to give it a once over. My problem started when I tried to run
> Eclipse to compile a test program. Eclipse died before really starting
> with an error stating that it didn't have a -XMaxPermSize parameter.
> After some digging I discovered that the MaxPermSize parameter to the
> Java vm was deprecated in Java 8 and has been removed in JDK 9 (see
> here: httx://openjdk.java.net/jeps/122).
> JEPS-122 says to just remove the parameter for it to work, but how do I
> remove that from Eclipse as it is built into the startup? If this post
> could be moved/redirected to the teams that need to know I would
> appreciate it. And if they would tell me on the forum or email me how to
> fix it, I would appreciate that to! :d
> Kenneth Benson
> mailto:phoenyx33@xxxxxxxx
Previous Topic:Injection into ContentProvider / LabelProvider
Next Topic:Android Not showing
Goto Forum:
  


Current Time: Thu Oct 01 23:41:35 GMT 2020

Powered by FUDForum. Page generated in 0.01965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top