Re: Access to java compiler in Linux
Posted by
JiHO-2 on
Jun 16, 2009; 11:42pm
URL: http://imagej.273.s1.nabble.com/Access-to-java-compiler-in-Linux-tp3692106p3692116.html
On 2009-June-16 , at 18:12 , Curtis Rueden wrote:
>> PS: as a side note, is there a way to compile plugins on the
>> command line,
>> outside of ImageJ.
>
> In general, with Java 1.6+ you should be able to use something like:
>
> javac -cp /path/to/ImageJ/ij.jar:/path/to/ImageJ/plugins/*
> My_Plugin.java
>
> You may run into trouble if you have JAR dependencies in subfolders of
> plugins, but if your build configuration is getting that complicated I
> suggest you keep ij.jar somewhere as a separate dependency and build
> everything totally outside the ImageJ directory structure. That's
> how we
> build the LOCI plugins.
It is a very simple plugin that only uses core ImageJ functionality
(well, at the moment anyway) so this advice is very useful. Thanks.
JiHO
---
http://maururu.net