Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 566640

Summary: Add org.eclipse.justj.openjdk.hotspot.jre.full.linux.aarch64
Product: [Technology] Justj Reporter: Liviu Ionescu <ilg>
Component: GeneralAssignee: Project Inbox <justj-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Ed.Merks, jonah, sravankumarl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 568233    
Bug Blocks: 565419    

Description Liviu Ionescu CLA 2020-09-03 06:45:19 EDT
As commented by Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>:

Adding org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64 will take time.
We don't have aarch builds from OpenJDK yet. Hoping this will change with java
15.
Comment 1 Ed Merks CLA 2020-09-18 05:07:23 EDT
It looks like this architecture is available now for Java 15:

https://jdk.java.net/15/

But, getting this working will be a large investment of time.  I believe we'll need an agent that runs natively, but that must be possible because the platform supports this architecture.  I don't think I could test anything locally on a virtual box for this.

I'm a little doubtful that there is a broad need for this.  I could be wrong. But kind of I doubt anyone would be interested enough to either actually do all the work or actually fund the effort involved...
Comment 2 Liviu Ionescu CLA 2020-09-18 05:16:29 EDT
Sorry if this is a stupid question, but what effect has this?

Will this speed up things in any way? Since for now Eclipse is quite slow on Aarch64, especially during startup, which takes more than 1 minute on a Raspberry Pi 4 with all 4 cores crunching Java code.
Comment 3 Ed Merks CLA 2020-09-18 05:23:30 EDT
JustJ simply provides JREs that can be installed into an Eclipse IDE as alternative to manually installing a JDK or JRE on the system and using that one to run the Eclipse IDE.  It will not help performance of the IDE.

I.e., you can manually install this:

https://download.java.net/java/GA/jdk15/779bf45e88a44cbd9ea6621d33e33db1/36/GPL/openjdk-15_linux-aarch64_bin.tar.gz

and then use it in your Eclipse IDE to see if that affects performance.

You can also download the latest release to see if it's improved:

https://download.eclipse.org/eclipse/downloads/drops4/R-4.17-202009021800/download.php?dropFile=eclipse-SDK-4.17-linux-gtk-aarch64.tar.gz


Be sure the JRE (java) you want is on the PATH or that you edit the eclispse.ini to specify it via a -vm option...
Comment 4 Liviu Ionescu CLA 2020-09-18 08:28:55 EDT
Thank you, Ed, so the embedded Java is only for convenience, not performance.

I tested OpenJDK 15, it improved the startup time a bit (from 80 to 60 s) but I got a message box with:

An internal error occurred during: "Load QML Analyzer".
Cannot invoke "javax.script.ScriptEngine.getContext()" because "this.engine" is null

I also tried AdoptOpenJDK, but the error message was there too.

Does Eclipse start with Java 15 on Intel Linux properly?

I'm using an extended version of CDT:

https://www.eclipse.org/downloads/download.php?file=/embed-cdt/packages-test/2020-09-M3-KSE/eclipse-embedcdt-2020-09-M3-linux.gtk.aarch64.tar.gz
Comment 5 Ed Merks CLA 2020-09-18 08:38:29 EDT
I haven't tested with Java 15 specifically, but Eclipse does start with JustJ's Java 14 JRE for x86_64 Linux so I assume it does start properly with any Java version 11 or higher...

I guess that this project is providing these downloads:

https://projects.eclipse.org/projects/iot.embed-cdt

Maybe it will be good to try to ask them directly:

https://projects.eclipse.org/projects/iot.embed-cdt/contact
Comment 6 Liviu Ionescu CLA 2020-09-18 08:53:38 EDT
> iot.embed-cdt ... Maybe it will be good to try to ask them directly

No need to ask, that's my project. :-)

It is the standard CDT with my plug-ins on top of them, and the error does not come from my plug-ins.

I'll ask the CDT team.
Comment 8 Ed Merks CLA 2020-12-02 01:01:40 EST
This support is available in the released version of 15.0.1:

https://download.eclipse.org/justj/jres/15/updates/release/15.0.1