Home > front end >  How to specify the JRE used during the debug?
How to specify the JRE used during the debug?

Time:01-16

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

enter image description here

But during the debug, I notice Eclipse still use the default jre, not the one I specify, etc

enter image description here

What's the official way to specify the JRE used during the debug?

Thanks

CodePudding user response:

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:

enter image description here

  •  Tags:  
  • Related