Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Installing Eclipse with bundled JRE
Installing Eclipse with bundled JRE [message #1837877] Tue, 09 February 2021 12:59 Go to next message
Sascha Zur is currently offline Sascha ZurFriend
Messages: 9
Registered: February 2021
Junior Member
Hi,

my goal is to provide an Eclipse installation for a team using the Eclipse installer. One thing is, that we develop in Java 8 but want to use the current Eclipse distribution which requires Java 9+.
Since the default environment of the users don't have a Java 9+ installation on their computer, I thought it might be possible to install a bundled (JustJ?) JRE (11) with the Eclipse installation and use this one to start Eclipse.
I tried adding the JustJ repository and requirement to my .setup file, but it won't set the -vm argument in the eclipse.ini to this.

Can anyone help me setting what to put into my setup file?

Also, if possible, the selection of the JRE on the product choosing wizard page could be disabled this way. Is that possible?

Thanks in advance!
Sascha
Re: Installing Eclipse with bundled JRE [message #1837884 is a reply to message #1837877] Tue, 09 February 2021 14:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
The installer already gives a choice of a JustJ JRE:

https://ed-merks.blogspot.com/2020/08/no-java-no-problem.html

There is not yet a way to supress that choice.

But Oomph is open source so if you wanted that you could help contribute toward that fund someone to do that. Likely some special value (0?) for ProductVersion.requiredJavaVersion to indicate that no Java version is required because the product will install the required JRE would do the trick.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Installing Eclipse with bundled JRE [message #1837886 is a reply to message #1837884] Tue, 09 February 2021 15:02 Go to previous messageGo to next message
Sascha Zur is currently offline Sascha ZurFriend
Messages: 9
Registered: February 2021
Junior Member
Thanks for your quick response.

It seems something is not working the way is should for me. Could it be because I redirect oomph to my own local org.eclipse.setup (for hosting an own index with products/projects)?

I installed the latest EclipseInstaller with JRE.

Ok, so disabling the JRE Chooser was a bit optional for me, but I will see what I can do :)
Re: Installing Eclipse with bundled JRE [message #1837890 is a reply to message #1837886] Tue, 09 February 2021 16:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Yes, if you have an older copy, you'll need to update it.

This annotation is present

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/setups/org.eclipse.setup#n14

And that causes this resource to be available :

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/setups/org.eclipse.jres.setup

Via the annotation it is located and used by the wizard in org.eclipse.oomph.setup.ui.wizards.SetupWizard.IndexLoader.indexLoaded(Index)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Installing Eclipse with bundled JRE [message #1837910 is a reply to message #1837890] Wed, 10 February 2021 09:45 Go to previous message
Sascha Zur is currently offline Sascha ZurFriend
Messages: 9
Registered: February 2021
Junior Member
Hi,

ok, that worked. Thank you very much :)
Previous Topic:Is there a way to set a default Installation Folder?
Next Topic:Eclipse 2020-06 Installation Error with xtext
Goto Forum:
  


Current Time: Tue Apr 16 18:03:24 GMT 2024

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

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

Back to the top