Login  Register

Compiling, directories, and jar files rules

Posted by Fred Damen on Jun 18, 2020; 8:33pm
URL: http://imagej.273.s1.nabble.com/Compiling-directories-and-jar-files-rules-tp5023539.html

Greetings,

I am seeing what seems strange when using "Compile and Run" regarding
class names and JAR file names.  I am trying to compile a Java plugin that
uses a class for a plugin (Gnu_Plot) that I placed in a subdirectory
(Gnu_Plot) of plugins and created a jar file (Gnu_Plot.jar) for this
plugin, following https://imagej.nih.gov/ij/plugins/jar-demo.html. Running
Gnu_Plot from the menus works fine.  Trying to compile another plugin that
calls Gnu_plot methods does not know of the existence of Gnu_Plot, Even
though the java source and class files exist in the subdirectory and jar
file. Renaming the jar file to GnuPlot.jar, with and without restarting
ImageJ, the "Compile and Run" now finds Gnu_Plot and this plugin compiles
fine.

a) In the case that I described above, where is "Compile and Run" supposed
to find the class files, from within the jar file, from within
subdirectories? search order?
b) Is there a specific place that the class files need to be within the
jar file for them to be found during compiling?

Thanks in advance,

Fred

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html