Bug 567236 - Investigate to check the possibilities of enabling Eclipse JDT debugger to be used with JRE
Summary: Investigate to check the possibilities of enabling Eclipse JDT debugger to be...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.17   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: regression
Depends on:
Blocks: 565417
  Show dependency tree
 
Reported: 2020-09-22 05:21 EDT by Sarika Sinha CLA
Modified: 2023-03-18 04:30 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 Sarika Sinha CLA 2020-09-22 05:21:45 EDT
As an impact of Bug 565417, Eclipse debug is impacted if JRE is used instead of JDK.

We need to investigate if we can support it again with JRE.
Comment 1 Andrey Loskutov CLA 2020-09-22 05:37:26 EDT
Wasn't tools.jar & JDK always pre-requisite for debugging Java?

There are also other reasons to require JDK for Eclipse:
- On Mac's JDK is pre-requisite for Eclipse anyway, independently on the JDT debug.
- ct.sym needed to compile against older releases is also inside JDK only.
- no sources for JDK libraries are available for debugger in JRE.

So what is the goal / target users of this proposal?

Allow to debug Java programs by running on JRE (but without possibility to run on Mac and to compile with --release option and may be other side effects like missing sources etc)?
Comment 2 Sarika Sinha CLA 2020-09-22 12:13:29 EDT
(In reply to Andrey Loskutov from comment #1)
> Wasn't tools.jar & JDK always pre-requisite for debugging Java?
> 
> There are also other reasons to require JDK for Eclipse:
> - On Mac's JDK is pre-requisite for Eclipse anyway, independently on the JDT
> debug.
> - ct.sym needed to compile against older releases is also inside JDK only.
> - no sources for JDK libraries are available for debugger in JRE.
> 
> So what is the goal / target users of this proposal?
> 
> Allow to debug Java programs by running on JRE (but without possibility to
> run on Mac and to compile with --release option and may be other side
> effects like missing sources etc)?

Not for Mac, but for others Not for debug but for other purposes JDK should not be required. As we saw some people complained about getting error while navigating through Preferences->Java->Installed JREs

Why these packages were added to jdt.debug plugin? As JDK via tools.jar had these packages before also.
Comment 3 Alexander Kurtakov CLA 2020-09-23 12:41:55 EDT
How can one get JRE for Java 11+? It's a true question as I thought JRE is gone.
Comment 4 Andrey Loskutov CLA 2020-09-23 13:02:01 EDT
(In reply to Alexander Kurtakov from comment #3)
> How can one get JRE for Java 11+? It's a true question as I thought JRE is
> gone.

I guess on Red Hat that would be equivalent to *not* installing java-11-openjdk-devel rpm, as seen in bug 567066 comment 9. Of course there is nothing similar on Mac/Windows, and I see no possibility to download JRE for Windows /Mac from Oracle at https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html.
Comment 5 Alexander Kurtakov CLA 2020-09-23 13:13:51 EDT
(In reply to Andrey Loskutov from comment #4)
> (In reply to Alexander Kurtakov from comment #3)
> > How can one get JRE for Java 11+? It's a true question as I thought JRE is
> > gone.
> 
> I guess on Red Hat that would be equivalent to *not* installing
> java-11-openjdk-devel rpm, as seen in bug 567066 comment 9. Of course there
> is nothing similar on Mac/Windows, and I see no possibility to download JRE
> for Windows /Mac from Oracle at
> https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html.

Yeah but the content of this rpm doesn't contain any *.jar or *.jmod thus jdi is installed even without the devel rpm.
Comment 6 Sarika Sinha CLA 2020-09-23 21:40:06 EDT
I see JRE available for Java 11 for Windows at
https://developers.redhat.com/products/openjdk/download
Comment 7 Eclipse Genie CLA 2023-03-18 04:30:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.