catch NoClassDefFoundError on 1.4 jre

This commit is contained in:
Doug MacEachern 2008-10-04 19:06:23 +00:00
parent 29b9d5ada1
commit dd471219c4
1 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,15 @@ public class TestMx extends SigarTestCase {
}
public void testRegister() throws Exception {
try {
_testRegister();
} catch (NoClassDefFoundError e) {
//1.4 jre
traceln(e + ", skipping");
}
}
private void _testRegister() throws Exception {
MBeanServer server;
try {
server = Mx.getMBeanServer();