diff --git a/plugins/testng_rt/src/org/testng/RemoteTestNGStarter.java b/plugins/testng_rt/src/org/testng/RemoteTestNGStarter.java index 90110be48205..bad65e6b2707 100644 --- a/plugins/testng_rt/src/org/testng/RemoteTestNGStarter.java +++ b/plugins/testng_rt/src/org/testng/RemoteTestNGStarter.java @@ -101,8 +101,8 @@ public class RemoteTestNGStarter { testNG.run(); return; } - catch (NoSuchMethodError ignore) {} - catch (NoClassDefFoundError ignore) {} + catch (NoSuchMethodException ignore) {} + catch (ClassNotFoundException ignore) {} RemoteTestNG.main((String[])resultArgs.toArray(new String[resultArgs.size()])); }