Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse JustJ » [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini
[Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834024] Fri, 30 October 2020 12:55 Go to next message
lea ilagan is currently offline lea ilaganFriend
Messages: 59
Registered: October 2012
Member
Hello,

I tested JustJ installation in custom product (its based is eclipse-platform-4.17-win32-x86_64), where it used app.exe and app.ini. After installation, JustJ created new eclipse.ini to put "vm" arg instead of updating app.ini. Any inputs how to tweak it to update app.ini instead? Please advise.

Thank You!

[Updated on: Fri, 30 October 2020 12:55]

Report message to a moderator

Re: [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834031 is a reply to message #1834024] Fri, 30 October 2020 14:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33085
Registered: July 2009
Senior Member
I use this to build the Eclipse Installer and the p2 director, as driven by Tycho, modifies the eclipse-inst.ini during the build. But I didn't do anything special to make that work.

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/products/org.eclipse.oomph.setup.installer.product

What exactly do you mean by "After installation...". Do you mean during the Tycho build?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834438 is a reply to message #1834031] Tue, 10 November 2020 11:32 Go to previous messageGo to next message
lea ilagan is currently offline lea ilaganFriend
Messages: 59
Registered: October 2012
Member
Hi Ed Merks,

Here's what I did.
1. Using eclipse-platform-4.17-win32-x86_64, replace "eclipse.exe" with our pre-built "myapp.exe"
2. Replace "eclipse.ini" with "myapp.ini"
4. Launch "myapp.exe"
5. install plugins to create our product and restart
6. Install JustJJre, using it's update site https://download.eclipse.org/justj/jres/11/updates/release

Result:
1. JustJ created new "eclipse.ini" which contains "-vm" arg and "myapp.ini" wasn't updated. Please see below screenshot.
index.php/fa/39246/0/

Thanks,
Lea
Re: [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834449 is a reply to message #1834438] Tue, 10 November 2020 14:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33085
Registered: July 2009
Senior Member
No doubt somewhere in the metadata of the installation it still knows that the files should be called eclipse.exe, eclipsec.exe and eclipse.ini, so any update to those, or touch points to change those, will use the old/expected names.

This is not how you should create a branded product. You should build one using Tycho with your own *.product file with the proper branded name so that the metadata is consistent with the artifact names.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834478 is a reply to message #1834449] Wed, 11 November 2020 04:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33085
Registered: July 2009
Senior Member
To be more specific, in the installation's p2/org.eclipse.equinox.p2.engine/profileRegistry folder there will be a named profile folder, *.profile which in turn contains *.profile.gz files. Here there are things like this (for the case of the installer product):
    <property name='eclipse.touchpoint.launcherName' value='eclipse-inst'/>
...
      <touchpointData size='1'>
        <instructions size='2'>
          <instruction key='configure'>
            setLauncherName(name:eclipse-inst)
          </instruction>
          <instruction key='unconfigure'>
            setLauncherName()
          </instruction>
        </instructions>
      </touchpointData>

The touch point for setting the VM itself makes no mention of the name of the *.ini:
      <touchpointData size='1'>
        <instructions size='4'>
          <instruction key='uninstall'>
            org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:null);
          </instruction>
          <instruction key='zipped'>
            true
          </instruction>
          <instruction key='install'>
            org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:${artifact.location}/jre/bin);
          </instruction>
          <instruction key='manifest'>
            Bundle-SymbolicName: org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64;singleton:=true&#xA;Bundle-Version: 15.0.0.v20200918-1211&#xA;Fragment-Host: org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped;bundle-version=&quot;[15.0.0,15.0.1)&quot;
          </instruction>
        </instructions>
      </touchpointData>
I assume the *.ini is computed from the <eclipse.touchpoint.launcherName>.ini.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Inquiry] JustJ installation creates new eclipse.ini instead of updating <app>.ini [message #1834557 is a reply to message #1834478] Thu, 12 November 2020 11:23 Go to previous message
lea ilagan is currently offline lea ilaganFriend
Messages: 59
Registered: October 2012
Member
Hi Ed Merks,

I tried to change the launcher property value with our product name (ie. "myapp"), and yes it works perfectly.. But you are correct, we may consider building our product using *.product file to make everything consistent.
Thank you so much again for your help.

regards,
Lea
Previous Topic: javax.activation and javax.xml.bind ??
Next Topic:Unnecessary unpacking of platform fragments if not used
Goto Forum:
  


Current Time: Tue Mar 05 02:11:05 GMT 2024

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

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

Back to the top