Skip to main content



      Home
Home » Eclipse Projects » Eclipse JustJ » How to get JDK sources from JustJ
How to get JDK sources from JustJ [message #1844841] Mon, 27 September 2021 14:30 Go to next message
Eclipse UserFriend
When using JustJ as your JDK for the Eclipse IDE, how do you get the JDK sources?

In the Eclipse Installer I've selected 'JRE 11.0.2 - http://download.eclipse.org/justj/jres/11/updates/release/11.0.2'. In the target platform I have 'org.eclipse.justj.openjdk.hotspot.jre.full.feature.group' from 'http://download.eclipse.org/justj/jres/11/updates/release/11.0.2'.

When I download an Oracle JDK and extract it to my disk and use that one, I do get the sources.

It is really annoying not having the sources, as then you can't debug into the JDK code when something is wrong.

How can this be resolved?
Re: How to get JDK sources from JustJ [message #1844846 is a reply to message #1844841] Mon, 27 September 2021 23:40 Go to previous messageGo to next message
Eclipse UserFriend
In versions 15 and higher the src.zip is included. The original expectation was that these JREs would just be used/needed to run Eclipse itself and that Java developers would want a separate JDK for development purposes, but later the Eclipse Packaging Project developers asked to include the src.zip because of course in Windows -> Preferences -> Java -> Installed JREs the JRE used to run the IDE is present by default. Naturally you can add any other JRE available on your system and use that for development. I pointed out that the src.zip is huge, ~55M added to the ~70M of the JRE itself and that only Java developers would want that (not C/C++ developers for example). But there's also stripped variant without the source and with no debug information in the jars which is 1/2 the size so consumers could choose that.

So if you want source, install a newer version or configure the JRE in your preferences to use a JDK you have on your machine. You could update to the latest:

https://download.eclipse.org/justj/jres/16/updates/release/latest/
Re: How to get JDK sources from JustJ [message #1844852 is a reply to message #1844846] Tue, 28 September 2021 02:21 Go to previous message
Eclipse UserFriend
Thanks for the clear answer Ed!
Previous Topic:JustJ.openJDK signed and hardened
Next Topic:Are there plans for JustJ 17?
Goto Forum:
  


Current Time: Sat Jul 12 13:36:02 EDT 2025

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

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

Back to the top