Issue
On Windows (same question for Linux though), in eclipse.ini, I change
-vm
to
C:\Users\k\bin\jdk-17\bin
Then I can see the change, etc
src="https://i.stack.imgur.com/AQnCm.png" alt="enter image description here" />
But during the debug, I notice Eclipse still use the default jre, not the one I specify, etc
What's the official way to specify the JRE used during the debug?
Thanks
Solution
The change you made in eclipse.ini
is about the JRE that is used to run Eclipse. It is nothing to do with the JRE that is used to run/debug an application.
To configure the JRE for debugging an application , right click the .java
that you want to debug --> Debug As --> Debug Configuration. Then go to the JRE
tab to configure at there. Something like below:
Answered By - Ken Chan
Answer Checked By - Cary Denson (JavaFixing Admin)