Hi,
this is a somewhat complex issue, because usually, the ImageJ JAVA
environment is not the same as the main operating
system environment. That´s likely the reason that ImageJ does not find your
javac.
It also depends, how you try to compile, from the operating system command
line or from Imagej itself
(and want to only use ImageJ as kind of a "library"?)
For the easiest way to compile example code that runs as a regular plugin,
download one of the "ready-made"
distributions from
http://rsb.info.nih.gov/ij/download.htmlthat include tools.jar and use the built-in "Plugin/Compile and Run..."
command.
In case you already have some ImageJ distribution that causes this error,
make sure that tools.jar is in
imagej/jre/lib/ext
Cheers
Joachim
ImageJ Interest Group <
[hidden email]> schrieb am 10.06.2008 15:57:14:
> Hi, everyone, I try to use ImageJ to run and compile the sample
> code,IPDemo.java.But I get this error message:
> This JVM appears not to include the javac compiler. Javac is included
with
> the JRE1.1.8 bundled with the windows
> and Linux versions of imageJ. Mac OS 9 users must install Apple's Java
> SDK. When using JDK1.2 and later, the tools
> .jar file must be added to the command line that runs imageJ.
>
> The operating system on my machine is Windows XP, and I beleive I already
> installed Jave virtual machine and JRE because I can use "javac" commmand
> to compile some other java codes in Command Prompt.
>
> So, can anyone tell me how to fix this problem? How's the tool.jar file
> added to the command line that runs ImageJ?
>
> Many thanks.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________