Bug 582551 - Provide a MAT installer with bundled JRE
Summary: Provide a MAT installer with bundled JRE
Status: CLOSED MOVED
Alias: None
Product: MAT
Classification: Tools
Component: GUI (show other bugs)
Version: 1.14   Edit
Hardware: All Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2023-10-19 07:48 EDT by Sebastian Davids CLA
Modified: 2024-05-08 17:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2023-10-19 07:48:15 EDT
Provide a download/installer option with a bundled JRE:

https://eclipse.dev/mat/downloads.php

Similar to Eclipse:

https://wiki.eclipse.org/Eclipse_Installer
Comment 1 Andrew Johnson CLA 2023-10-31 06:29:16 EDT
We would need help for this one.

- Perhaps Oomph could help: https://wiki.eclipse.org/Eclipse_Oomph_Authoring
- or JustJ https://eclipse.dev/justj/
- or point people at an Eclipse SDK download and install MAT into Eclipse
  - from SimRel site (already done)
  - from Eclipse Marketplace (done, but needs to be updated to 1.14)
  - or work out how for the eclipse-inst-jre to add MAT to the advanced > products section
- or better instructions? Eclipse Memory Analyzer users are likely to be application developers or skilled Java debug people, so should be able to install a JRE / SDK.

Which platforms are problematic for getting MAT to run (Windows / Mac / Linux? x86_64 / AArch64? )

Do users of MAT need a JRE (to run MAT) or a SDK to trigger heap dumps (though MAT can be configured to use another SDK rather than what is used to run MAT).
Comment 2 Krum Tsvetkov CLA 2023-10-31 10:50:41 EDT
In the past, there was also a question if we should include MAT in one of the Eclipse packages, e.g. in the IDE for Java Developers. Never followed up on that, because of lack of time, but that would be another alternative.
Comment 3 Andreas Buchen CLA 2023-11-01 13:38:22 EDT
In my side project, I am using NSIS to create a Windows installer:

NSIS site:
https://nsis.sourceforge.io/Main_Page

The download is linked here, if you want to try:
https://www.portfolio-performance.info

The installer script:
https://github.com/portfolio-performance/portfolio/blob/master/portfolio-product/installer/installer.nsi

The Maven fragment to build the installer:
https://github.com/portfolio-performance/portfolio/blob/master/portfolio-product/pom.xml#L414-L429

The default install location is $LOCALAPPDATA\Programs\ as it allows for self-updating the installing easily.

However, as the user can also choose the regular C:\Programs location, it is also granting write permissions that location via AccessControl::GrantOnFile.

I am building the installer on my macOS machine.

I have installed NSIS via brew. The tricky part is that I had to manually add the AccessControl plugin to the appropriate directories of the NSIS installation.

If you are interested, I can help with the installation files. But someone would have to research what the build/CI server does support.
Comment 4 Eclipse Webmaster CLA 2024-05-08 17:01:05 EDT
This issue has been migrated to https://github.com/eclipse-mat/org.eclipse.mat/issues/41.