|
|
|
|
|
|
|
|
|
|
|
|
Re: Install eclipse with a bundled jre (jre copied inside eclipse installation) [message #1872198 is a reply to message #1819589] |
Thu, 24 October 2024 18:41   |
Eclipse User |
|
|
|
Hi, I've just stumbled upon this topic as I'm trying to simplify my teams Oomph IDE install, whilst also upgrading us from 4.23 to 4.31.
A pain point is I have to ask everyone to install Java 17 JDK, and then additionally Java 8 JDK, as that is what our code is built against. I'd love it if I can tell them they no longer have to worry about Java installs as Oomph does it!
I've attempted to Resource Copy zipped up versions of the JDKs from a URL, then used the Unzip task (https://github.com/maybeec/oomph-task-unzip) to extract the zip to the workspace, then setting up the JRE info etc etc....
I was very close, but then realised, the unzip task I've been using hasn't been extracting correctly, although everything is named correctly, the bin folder, for instance, is just a load of 'Document' file types of around 118KB. So I don't think that task is suitable.
It seems from this topic its possible though? How should I go about getting Oomph to obtain an archived JDK, extract to a given location, and use it? Is there a clever way I'm missing?
Thanks in advance for any help!
[Updated on: Thu, 24 October 2024 18:42] by Moderator
|
|
|
|
Re: Install eclipse with a bundled jre (jre copied inside eclipse installation) [message #1872213 is a reply to message #1872207] |
Fri, 25 October 2024 04:26   |
Eclipse User |
|
|
|
Thank you Ed, I didn't know it did this, I'm more than pleased it does!
Knowing it does this now, its a game-changer, so I'm looking at how to bypass the Java VM selection on the first Eclipse Installer dialog, as I will hopefully be providing our own.
Some users might be installing on a clean machine with no Java's installed, so I'm testing this, but I can't seem to shift the 'No match; click to configure...' message, so it won't allow the wizard to progress. (I've tried setting the Required Java Version for the product to be blank, null, and 0...neither worked)
As other users seem to have provided their own JRE, I'm assuming there must be a way? I've looked through the code on github, but I've not spotted anything yet.
[Updated on: Fri, 25 October 2024 04:26] by Moderator
|
|
|
|
|
|
|
|
Re: Install eclipse with a bundled jre (jre copied inside eclipse installation) [message #1872240 is a reply to message #1872231] |
Fri, 25 October 2024 10:56   |
Eclipse User |
|
|
|
Ah, yes, we do use our own index, that would explain it.
I've given aarch64 a go, and it does work now with IDz 17, it didn't with 16, so I will start using aarch installer for Mac Mx now.
I think I've now hit a brick wall for the reason you gave earlier in the thread regarding using pre-packaged JREs. Resource Copy does now extract a zipped up JRE where I want, but the executable bits have been lost, so the JRE isn't runnable, unless I can run a script, I don't think its do'able?
|
|
|
|
|
Re: Install eclipse with a bundled jre (jre copied inside eclipse installation) [message #1872354 is a reply to message #1872264] |
Mon, 28 October 2024 20:35   |
Eclipse User |
|
|
|
Hi Ed, this is fantastic, thank you for doing that. I can confirm that this part of puzzle now works and I can extract zips of JREs containing executables on Linux/Mac! I've also put in place a dummy 'org.eclipse.jres.setup' so I can get past the first dialog without setting a proper JRE.
I've now hit a new snag though which I've been going round in circles trying to pinpoint. BOOTSTRAP successfully extracts a J17 JRE into a folder for a 4.31 install, the eclipse ini -vm option points to that folder, all plugins seem to install during BOOTSTRAP, the BOOTSTRAP tasks successfully complete, Eclipse then successfully starts up using the specified JRE, but when the STARTUP tasks kick in, it says I have a long list of requirements that aren't being met and need installing (yet if I look through the setup.log I can see they were).
At the moment, this doesn't seem to happen if I configure some JVMs in the Eclipse Installer, even if I don't use them, nor have I not seen it happen on a Mac. It usually always happens on Linux or Windows if I remove the .eclipse & .p2 directories and do a fresh install.
I'll keep playing with it....
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09110 seconds