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 860 - Fiji Java Script Editor regression
Fiji Java Script Editor regression
Status: RESOLVED INVALID
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
Macintosh Mac OS
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-07-17 12:25 CDT by dominic_waithe
Modified: 2014-07-22 15:14 CDT
2 users (show)

See Also:

Description dominic_waithe 2014-07-17 12:25:55 CDT
Hi
Got the below error when tried to compile java plugin. It was fixed by renaming class to GP_PlugIn.java. Was very hard to spot because of the error generated no clue as to the real cause. This is error:


Javax.script.ScriptException: Class GP_PlugIn in invalid directory: /Users/dwaithe/Documents/collaborators/SezginE/bin/GP_Plugin.java
	at org.scijava.plugins.scripting.java.JavaEngine.getMavenProject(JavaEngine.java:369)
	at org.scijava.plugins.scripting.java.JavaEngine.access$600(JavaEngine.java:94)
	at org.scijava.plugins.scripting.java.JavaEngine$Builder.<init>(JavaEngine.java:324)
	at org.scijava.plugins.scripting.java.JavaEngine$Builder.<init>(JavaEngine.java:267)
	at org.scijava.plugins.scripting.java.JavaEngine.eval(JavaEngine.java:149)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:172)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:167)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:126)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:65)
	at org.scijava.thread.DefaultThreadService$2.call(DefaultThreadService.java:164)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:695)

Information about your version of Java:

  os.arch => x86_64
  os.name => Mac OS X
  os.version => 10.9.3
  java.version => 1.6.0_65
  java.vendor => Apple Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_65-b14-462-11M4609
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 20.65-b04-462
  java.vm.vendor => Apple Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => apple.awt.CGraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => null
  file.separator => /

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: null
  imagej.dir => /Applications/Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20140711230647)
Fiji: http://fiji.sc/update/ (last check:20140715010940)
Bio-Formats: http://sites.imagej.net/Bio-Formats/ (last check:20140717022649)
BioVoxxel: http://sites.imagej.net/BioVoxxel/ (last check:20140715212341)
LOCI: http://sites.imagej.net/LOCI/ (last check:20140401195514)
OMERO 5.0: http://sites.imagej.net/OMERO-5.0/ (last check:20140606034302)

Files not up-to-date:
  052c18d8 (LOCAL_ONLY) 20140706130931 jars/my/Jython_Launcher.class
  e35cf246 (LOCAL_ONLY) 20140715093403 jars/scripts/GPMacro_gaussian_V4$py.class
  0b39938f (LOCAL_ONLY) 20140715092237 plugins/Examples/Command_Launchers/Command_Launcher_Python$py.class
  357f80f0 (LOCAL_ONLY) 20140715092237 plugins/Examples/CoverMaker/Cover_Maker$py.class
  2bba6bc2 (LOCAL_ONLY) 20140715092237 plugins/Examples/CoverMaker/Prepare_Cover_Maker_Database$py.class
  c153d437 (LOCAL_ONLY) 20140715092237 plugins/Examples/Delayed_Snapshot$py.class
  e00db979 (LOCAL_ONLY) 20140715092237 plugins/Examples/Edit_LUT_As_Text$py.class
  1feee73d (LOCAL_ONLY) 20140715092237 plugins/Examples/Find_Dimension_of_Raw_Image$py.class
  ab6f7520 (LOCAL_ONLY) 20140715092237 plugins/Examples/TrakEM2_Example_Scripts/Homogenize_Ball_Radius$py.class
  e81e732f (LOCAL_ONLY) 20140715092237 plugins/Examples/TrakEM2_Example_Scripts/Measure_AreaLists$py.class
  a47feccb (LOCAL_ONLY) 20140715092237 plugins/Examples/TrakEM2_Example_Scripts/T2_Select_All$py.class
  757af3e5 (LOCAL_ONLY) 20140715092237 plugins/Examples/TrakEM2_Example_Scripts/T2_set_all_transforms_to_identity$py.class
  5f85647a (LOCAL_ONLY) 20140715092237 plugins/Examples/TrakEM2_Example_Scripts/extract_stack_under_arealist$py.class
  66784a81 (LOCAL_ONLY) 20140715092237 plugins/Examples/chess_$py.class
  732393f3 (LOCAL_ONLY) 20140715092237 plugins/Examples/list_all_threads$py.class
  22c6d3e0 (LOCAL_ONLY) 20140706132742 plugins/GPratio.jar
  71489cb1 (LOCAL_ONLY) 20140715092237 plugins/Scripts/Plugins/Registration/Correct_3D_drift$py.class
  4e7a8b94 (LOCAL_ONLY) 20140715092237 plugins/Scripts/Plugins/Utilities/Record_Desktop$py.class
  5c5af1b4 (LOCAL_ONLY) 20140715092237 plugins/Scripts/Plugins/Utilities/Record_Window$py.class
  9f4f8151 (LOCAL_ONLY) 20140706200802 plugins/jars/jython-2.5.2.jar
Comment 1 Johannes Schindelin 2014-07-22 15:14:42 CDT
Dominic replied via mail to the list that the issue was the lower-case 'i' in GP_Plugin.java that did not match the class name with an upper-case 'I'.