2

The error message I got while trying to debug my code

Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended"

enter image description here

What does it mean, why do I get it and how to get rid of it?

Zabuzard
  • 25,064
  • 8
  • 58
  • 82
Nakib Rahaman
  • 21
  • 1
  • 1
  • 2
  • 2
    This is an issue with hotspot and not your code as such. It may be that you're running on a newer version of Java than your version of IntelliJ is expecting/supporting, in which case, the answer is to upgrade your IntelliJ version or degrade your Java version. – AlBlue Jan 07 '21 at 13:36
  • It is not working yet. – Nakib Rahaman Jan 14 '21 at 14:31
  • What did you do? What was your version of Java and Intellij before, what is it now? Please be precise. – Zabuzard Feb 15 '21 at 23:03
  • [Gabriel García Muñoz](https://stackoverflow.com/users/9812545) posted an [Answer](https://stackoverflow.com/a/66216314) saying ""This question is related to this one, check it out and let me know ;) https://stackoverflow.com/questions/54205486/how-to-avoid-sharing-is-only-supported-for-boot-loader-classes-because-bootstra" – Scratte Feb 16 '21 at 22:17
  • Does this answer your question? [How to avoid "Sharing is only supported for boot loader classes because bootstrap classpath has been appended" warning during debug with Java 11?](https://stackoverflow.com/questions/54205486/how-to-avoid-sharing-is-only-supported-for-boot-loader-classes-because-bootstra) – Nolequen Jul 19 '22 at 14:26

1 Answers1

0

It might be late but it can helps others out there!!!

as the warning is specifying the bootstrap class path is appended, To Smash the warning follow these simple steps.

Click on File Menu>Settings, On Search Text Area on the left, type Async Stack Trace, Click on it in the options to open

UnCheck Instrument Agent, Click Apply then Ok.

Nimantha
  • 6,405
  • 6
  • 28
  • 69