Re: Compile and run error
Posted by Commandeur on
URL: http://imagej.273.s1.nabble.com/version-1-35l-tp3702806p3702811.html
Hi Ahmed,
First you should look at the 'ImageJ.cfg' file in your
ImageJ directory. This file specifies from where the java
virtual machine (JRE) is started. My 'ImageJ.cfg' file
looks like:
>
>.
>C:\Program Files\ImageJ\jre\bin\javaw.exe
>-Xmx340m -cp ij.jar ij.ImageJ
>
Once you know which installation of the JRE ImageJ uses,
you should go there and see if 'tools.jar' is in
the 'lib\ext' directory. The 'tools.jar' archive containts
the javac compiler, so you need it!
...\java\jre1.5.0_06\lib\ext
By default 'tools.jar' is not in the 'lib\ext' directory
of JRE 5.0.6. I know it is in the JRE that comes with WCIF
ImageJ and it's in the J2SE Development Kit (JDK). The JDK
is interesting to get anyway if you're planning to develop
stuff in java.
What you can do is search for 'tools.jar' on your pc and
put it in the correct '\lib\ext' directory or set the path
to the JRE that has the 'tools.jar' file there.
Hope this helps,
Greetings,
Edwin
> Hi,
>
> When I try to compile java file through compile and run,
it gives me
> following error message:
>
> "This JVM does not include the javac compiler. Javac is
included with
> Window, OS X and Linux versions of ImageJ".
>
> The error appears with ImageJ 1.37. Then I reinstalled
ImageJ bundled with
> JRE 5.0.6 (20MB), but the error persists.
>
> I appreciate any help.
>
> Ahmed
>