ReferenceError: "importPackage" is not defined in <eval>
Posted by
astrofriend on
Jan 14, 2020; 2:32pm
URL: http://astroimagej.170.s1.nabble.com/ReferenceError-importPackage-is-not-defined-in-eval-tp1274.html
Hi, sorry to disturb.
I have some problem with AIJ to run JAVA script. I'm not a JAVA developer but try to do JAVA scripts.
I get an error message when I try to run my script.
It happens already on the first line and I get this in the AIJ log window:
ReferenceError: "importPackage" is not defined in <eval> at line number 1
I have placed the script in the plugin directory.
These are the three first line in my script Input_test.js
importClass(Packages.ij.IJ);
importClass(Packages.ij.io.OpenDialog);
ij = Packages.ij;
It's a Windows10-64 bit computer and everything else with AIJ works, all my macros I have. It's not installed on the C drive. For me it looks like some security problem that Windows block. I have tried to run AIJ as administrator.
Any idea ?
/Lars