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

Bug 567204

Summary: ClassNotFoundException when viewing Installed JREs in Preferences
Product: [Eclipse Project] JDT Reporter: Waste Paper Basket <wastepaperbasket>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, wastepaperbasket
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Full stack trace for exception none

Description Waste Paper Basket CLA 2020-09-21 08:56:47 EDT
Created attachment 284207 [details]
Full stack trace for exception

Eclipse 2020-09 (4.17) needs Java JRE, installed JRE is (java -version):
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

Reproduce exception by opening Window | Preferences | Java | Installed JREs

Unable to create the selected preference page.
An error occurred while automatically activating bundle org.eclipse.jdt.debug.ui (225).

Root cause is
Caused by: java.lang.ClassNotFoundException: com.sun.jdi.VMDisconnectedException cannot be found by org.eclipse.jdt.debug_3.16.0.v20200828-0821

Class VMDisconnectedException can be found in JDK-8s tools.jar, but seems to be no longer part of the JDK since JDK-9.

SysInternals Process Monitor shows that eclipse.exe is trying to access plugins\org.eclipse.jdt.debug_3.16.0.v20200828-0821\tools.jar unsuccessfully.

Workaround: Copy tools.jar into plugins\org.eclipse.jdt.debug_3.16.0.v20200828-0821 directory of Eclipse 2020-09 (4.17) installation.
Comment 1 Andrey Loskutov CLA 2020-09-21 09:23:48 EDT

*** This bug has been marked as a duplicate of bug 567182 ***