test/java/lang/instrument/PremainClass/NoPremainAgentTest.java

Print this page
rev 9907 : 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError

@@ -28,11 +28,11 @@
 /*
  * @test
  * @bug 6289149
  * @summary test when the agent's class is missing the premain() function.
  * @library /lib/testlibrary
- * @run build DummyMain
+ * @run build jdk.testlibrary.* DummyMain
  * @run shell ../MakeJAR3.sh NoPremainAgent
  * @run main NoPremainAgentTest
  */
 public class NoPremainAgentTest {
     // Use a javaagent without the premain() function.