CodeSVby CA Technologies

FAQ

< Back

My jUnit Test Ends With A RuntimeException

Q: I’m getting java.lang.RuntimeException caused by java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine when running SV as Code in jUnit test.
A: You need to install and use Java Development Kit (JDK) instead of Java Runtime Environment (JRE) because SV as Code requires tools.jar from JDK to be installed.