Antwort: Re: Compile and run error

Posted by Joachim Wesner on
URL: http://imagej.273.s1.nabble.com/version-1-35l-tp3702806p3702813.html

Hi,


>The java compiler is *not* included in the JRE. It is in the JDK (the "D"
>in JDK means "Developer").

This is not REALLY true, yes, there is no javac command line program and
other stuff unless you install an SDK, still,
IJ's "Compile and run" relies on the sun.tools.javac class to do "built-in
compiliation", which is included in tools.jar which comes,
for ex. already with the minimum windows JRE install you can download from
http://rsb.info.nih.gov/ij/download.html!

(I learned about this when I tried to do an external compile with javac and
it wouldn´t work, still IJ comile-and-run had been working like
charm all the time, also could not find any javac on my system, so what the
hell was going on.............??)

So this might be also the explanation why adding a full JDK does NOT help!
Sorry, but I also do not know what the reason might be.

Joachim




|---------+---------------------------->
|         |           Johannes         |
|         |           Schindelin       |
|         |           <Johannes.Schinde|
|         |           [hidden email]>      |
|         |           Gesendet von:    |
|         |           ImageJ Interest  |
|         |           Group            |
|         |           <[hidden email].|
|         |           GOV>             |
|         |                            |
|         |                            |
|         |           12.05.2006 01:23 |
|         |           Bitte antworten  |
|         |           an ImageJ        |
|         |           Interest Group   |
|---------+---------------------------->
  >-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                               |
  |        An:      [hidden email]                                                                                           |
  |        Kopie:                                                                                                                 |
  |        Thema:   Re: Compile and run error                                                                                     |
  >-------------------------------------------------------------------------------------------------------------------------------|




Hi,

On Thu, 11 May 2006, Ahmed Khwaja wrote:

> "This JVM does not include the javac compiler. Javac is included with
> Window, OS X and Linux versions of ImageJ".

The java compiler is *not* included in the JRE. It is in the JDK (the "D"
in JDK means "Developer").

So: install the jdk.

Hth,
Dscho



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________