Re: compile and run problem
Posted by
ctrueden on
Sep 04, 2007; 5:17pm
URL: http://imagej.273.s1.nabble.com/Nearest-Neighbor-Calculations-tp3698441p3698445.html
Hi Aryeh,
ImageJ's compiler class (ij.plugin.Compiler) uses the undocumented,
deprecated sun.tools.javac.Main class to call the compiler, which I'm
guessing is not supported by JRockit, as the sun.tools.javac package
is not an official part of the Java specification. There is a new,
official Java compiler interface, javax.tools.JavaCompiler, that was
added in 1.6. It looks like JRockit works with 1.6 as of a few months
ago, so it would probably be possible to make ImageJ's Compiler use
javax.tools.JavaCompiler via reflection if available, and fall back to
the deprecated interface if not, resulting in a working "Compile and
Run" option with JRockit.
-Curtis
On 9/3/07, Aryeh Weiss <
[hidden email]> wrote:
> I am running ImageJ using the Jrockit JDK, in order to be able to use over 2GB
> of RAM. However, I cannot use the compile and run function. I verified that
> javac.exe exists, and the tools.jar is in the lib directory. It still reports
> that the JVM does not include the javac compiler.
>
> Any ideas as to how to solve this problem will be much appreciated.
>
> --aryeh
> --
> Aryeh Weiss
> School of Engineering
> Bar Ilan University
> Ramat Gan 52900 Israel
>
> Ph: 972-3-5317638
> FAX: 972-3-7384050
>