openmicroscopy/bioformats — pull request #170 by joshmoore (2012-10-12 09:52:27+00:00)
Title: Use fork=true to fix Windows build (4.4)

Original PR against develop: gh-157

The hudson.openmicroscopy.org.uk/job/OMERO-trunk-components build has been failing since we moved to submodules, since the build on Windows was failing with:

```
compile:
Compiling 47 source files to

BUILD FAILED
:167: The following error occurred while executing this line:
:364: The following error occurred while executing this line:
:312: The following error occurred while executing this line:
:205: The following error occurred while executing this line:
:35: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"

Total time: 30 seconds
Failed 1
```

Part of the program is having a space in the JAVA_HOME setting (``C:\Program Files\Java\jdk1.6.0_21`` versus ``c:\progra~1\Java\jdk1.6.0_21``), but correcting that is not enough.

The only two solutions I've found so far (for the bioformats build) are:
* use ``java omero`` rather than ``build.bat``
* adding fork to javac.

If there are no concrete reasons for omitting fork, I'd vote for the latter.