[clij2] Script editor broken on windows

Dear All and moreover dear @haesleinhuepf ,
After last update of clij2 via update site I am having big trouble with Script Editor of Fiji.
I have Windows 10, java 1.8.0_172 and Imagej 1.53c.

every time I open a new script, Fiji throws up this exception:

(Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 351MB of 98111MB (<1%)
 
java.lang.NoClassDefFoundError: net/haesleinhuepf/clij/clearcl/interfaces/ClearCLImageInterface

	at java.lang.Class.getDeclaredMethods0(Native Method)

	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)

	at java.lang.Class.getMethod0(Class.java:3018)

	at java.lang.Class.getMethod(Class.java:1784)

	at ij.macro.Functions.call(Functions.java:4490)

	at ij.macro.Functions.getStringFunction(Functions.java:276)

	at ij.macro.Interpreter.getStringTerm(Interpreter.java:1475)

	at ij.macro.Interpreter.getString(Interpreter.java:1453)

	at ij.macro.Interpreter.doStatement(Interpreter.java:333)

	at ij.macro.Interpreter.doStatements(Interpreter.java:264)

	at ij.macro.Interpreter.run(Interpreter.java:160)

	at ij.macro.Interpreter.run(Interpreter.java:93)

	at ij.macro.Interpreter.run(Interpreter.java:104)

	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)

	at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:145)

	at ij.IJ.runMacroFile(IJ.java:165)

	at ij.macro.Functions.runMacro(Functions.java:3721)

	at ij.macro.Functions.getStringFunction(Functions.java:266)

	at ij.macro.Interpreter.getStringTerm(Interpreter.java:1475)

	at ij.macro.Interpreter.getString(Interpreter.java:1453)

	at ij.macro.Interpreter.doStatement(Interpreter.java:333)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.doStatement(Interpreter.java:323)

	at ij.macro.Interpreter.doFor(Interpreter.java:634)

	at ij.macro.Interpreter.doStatement(Interpreter.java:305)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.doStatement(Interpreter.java:323)

	at ij.macro.Interpreter.doIf(Interpreter.java:1090)

	at ij.macro.Interpreter.doStatement(Interpreter.java:299)

	at ij.macro.Interpreter.doStatements(Interpreter.java:264)

	at ij.macro.Interpreter.run(Interpreter.java:160)

	at ij.macro.Interpreter.run(Interpreter.java:93)

	at ij.macro.Interpreter.run(Interpreter.java:104)

	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)

	at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:145)

	at ij.IJ.runMacroFile(IJ.java:165)

	at ij.macro.Functions.runMacro(Functions.java:3721)

	at ij.macro.Functions.getStringFunction(Functions.java:266)

	at ij.macro.Interpreter.getStringTerm(Interpreter.java:1475)

	at ij.macro.Interpreter.getString(Interpreter.java:1453)

	at ij.macro.Interpreter.doStatement(Interpreter.java:333)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.doStatement(Interpreter.java:323)

	at ij.macro.Interpreter.doIf(Interpreter.java:1090)

	at ij.macro.Interpreter.doStatement(Interpreter.java:299)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.doStatement(Interpreter.java:323)

	at ij.macro.Interpreter.doFor(Interpreter.java:634)

	at ij.macro.Interpreter.doStatement(Interpreter.java:305)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.doStatement(Interpreter.java:323)

	at ij.macro.Interpreter.doIf(Interpreter.java:1090)

	at ij.macro.Interpreter.doStatement(Interpreter.java:299)

	at ij.macro.Interpreter.doBlock(Interpreter.java:712)

	at ij.macro.Interpreter.runMacro(Interpreter.java:187)

	at ij.macro.MacroRunner.run(MacroRunner.java:152)

	at ij.macro.MacroRunner.run(MacroRunner.java:125)

	at ij.plugin.MacroInstaller.autoRun(MacroInstaller.java:544)

	at ij.macro.StartupRunner.run(StartupRunner.java:25)

	at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.ClassNotFoundException: net.haesleinhuepf.clij.clearcl.interfaces.ClearCLImageInterface

	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)

	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

	... 61 more

I think it could go in conflict with fiji script autocompiler.
It’s not only throwing up an exception but then it doesn’t permit me to move between scripts smoothly.

At the moment, I just removed clij2 update site to write a script.

Does someone have another solution?

thank you,
Emanuele Martini

1 Like

Hey @emartini ,

if you want to use clij2, you also need to activate the clij update site. The error should be gone then.

See also the installation instructions.

Let me know if this solves the issue!

Cheers,
Robert

2 Likes

perfecti it works!
sorry, it was my fault I didn’t read instructions and just removed clij and put clij2…

thank you

1 Like

You’re welcome :slight_smile: It’s not exactly your fault - a better error message would be nice. Also some day, we will manage to have dependent update sites automatically selected :slight_smile:

Thanks for reporting and checking!

2 Likes