Login  Register

Re: Compiling, directories, and jar files rules

Posted by Wayne Rasband-2 on Jun 20, 2020; 4:34pm
URL: http://imagej.273.s1.nabble.com/Compiling-directories-and-jar-files-rules-tp5023539p5023544.html

> On Jun 18, 2020, at 4:33 PM, Fred Damen <[hidden email]> wrote:
>
> 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,

Library JAR files (e.g., Gnu_Plot.jar) should be located in the plugins/jars directory.

-wayne


> 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