Page 1 of 1

NoClassDefFoundError MethodClosure

PostPosted: Tue Nov 18, 2014 3:55 am
by Providence1
I'm getting this error on all versions of Java 7 Update 24-71 on my Mac machines:

java.lang.NoClassDefFoundError: com/apple/mrj/jdirect/MethodClosure
at net.roydesign.mac.MRJAdapter.addAboutListener(MRJAdapter.java:777)
at net.roydesign.app.AboutJMenuItem.addActionListener(AboutJMenuItem.java:78)
at com.servoy.j2db.smart.J2DBClient.attachAppleMenu(J2DBClient.java:2899)
at com.servoy.j2db.smart.J2DBClient.applicationSetup(J2DBClient.java:1010)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:773)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:683)
at com.servoy.j2db.smart.J2DBClient.mainImpl(J2DBClient.java:707)
at com.servoy.j2db.smart.J2DBClient.main(J2DBClient.java:670)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.apple.mrj.jdirect.MethodClosure
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 17 more


Any ideas as to what can be causing this?

Most appreciative, in advance.

Re: NoClassDefFoundError MethodClosure

PostPosted: Mon Nov 24, 2014 3:14 pm
by jcompagner
which version of servoy are you using?

this seems to be a problem of the mrjadapter.jar, you could try to move it away (or replace it with a emtpy file)
or get a mrjadapter.jar file from a later release of servoy.