0

IN my project, I have a dependency on tools.jar for instrumentation purposes. Without tools.jar in jdk9 and beyond (in JD11 too), where and how can I resolve the dependency?

Has anyone come across same scenario?

Regards,

Naman
  • 27,789
  • 26
  • 218
  • 353
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
  • 1
    what *certainly* matters is what you were using from that jar and does the JDK not expose those classes or API anymore? Do take a look at - [Declare maven dependency on tools.jar to work on JDK 9](https://stackoverflow.com/questions/35240134/declare-maven-dependency-on-tools-jar-to-work-on-jdk-9) – Naman Oct 24 '19 at 15:14
  • @Naman the tools.jar has been totally thrashed into JDK's internal modules. In other words, any dependency on `tools.jar` needs to be revisited and refactored, for sure. My question is - is there an example of how this refactoring/change should be performed. – ha9u63a7 Oct 24 '19 at 15:17
  • 1
    What means “dependency” to you? For Java code, you don’t need to do anything. Perhaps, you’re talking about a build environment that requires you to name “dependencies” explicitly (e.g. Maven). But you didn’t name one. – Holger Oct 24 '19 at 16:22

0 Answers0