NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 322 - Executing JRuby scripts from Script Editor results in NoClassDefFoundError
Executing JRuby scripts from Script Editor results in NoClassDefFoundError
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
Macintosh Mac OS
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2011-06-07 09:01 CDT by Jan Eglinger
Modified: 2011-07-06 20:16 CDT
0 users

See Also:

Description Jan Eglinger 2011-06-07 09:01:40 CDT
Steps to reproduce:

- Start Fiji
- File > New > Script
- Language > Ruby
- type any JRuby code (or leave empty)
- Press Run

The console will show something like:

Started New_.rb at Tue Jun 07 08:53:09 CEST 2011
java.lang.NoClassDefFoundError: org/jruby/runtime/callback/FastInvocationCallback
	 at java.lang.ClassLoader.defineClass1(ClassLoader.java:-2)
	 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	 at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:25)
	 at org.jruby.runtime.callback.InvocationCallbackFactory.endCall(InvocationCallbackFactory.java:293)
	 at org.jruby.runtime.callback.InvocationCallbackFactory.getFastMethod(InvocationCallbackFactory.java:684)
	 at org.jruby.RubyObject.createObjectClass(RubyObject.java:206)
	 at org.jruby.Ruby.initRoot(Ruby.java:870)
	 at org.jruby.Ruby.bootstrap(Ruby.java:850)
	 at org.jruby.Ruby.init(Ruby.java:827)
	 at org.jruby.Ruby.newInstance(Ruby.java:157)
	 at org.jruby.Ruby.newInstance(Ruby.java:180)
	 at JRuby.Refresh_JRuby_Scripts.runScript(Refresh_JRuby_Scripts.java:37)
	 at fiji.scripting.TextEditor$Tab$6.execute(TextEditor.java:1197)
	 at fiji.scripting.TextEditor$Executer$1.run(TextEditor.java:1756)
Comment 1 Johannes Schindelin 2011-07-06 20:16:42 CDT
Sory for the long delay, I fixed this in http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=2a1d529265243b6b65daae44d5f5e59636326b9d