Provider sun.tools.attach.LinuxAttachProvider not found

175 views Asked by At

I am trying to compile an app with java 8 and run it with java 17.

I have both in my machine installed - java 8 and java 17. Java 8 set as $JAVA_HOME and java 17 has its own variable $JDK170_HOME.

I compiled application with java 8, added vm parameter to run it with java 17. Also i added

-Djava.library.path="%JAVA_HOME%\lib"

to add tools.jar from jdk8 to runtime jdk17 to my path.

but in stdOut.log I see

 java.util.ServiceConfigurationError:
 com.sun.tools.attach.spi.AttachProvider: Provider
 sun.tools.attach.LinuxAttachProvider not found

Please tell me what is wrong here?

0

There are 0 answers