[ome-users] "com.sun.tools.javac.Main is not on the classpath" errors with openmicroscopy-openmicroscopy-5975f24 (4.4.4)

John Webber (NBI) John.Webber at nbi.ac.uk
Fri Oct 12 10:34:26 BST 2012


Hi

I have downloaded the "dev_4_4" version of openmicroscopy from:  "https://github.com/openmicroscopy/openmicroscopy".

I am attempting to build this version on my desktop machine ("build.py build-all"), but I have encountered several errors, as per the one below:

----------=========== poi-loci ===========----------

compile:
Compiling 1 source file to D:\openmicroscopy-openmicroscopy-5975f24\components\bioformats\components\forks\poi\build\classes

BUILD FAILED
D:\openmicroscopy-openmicroscopy-5975f24\build.xml:175: The following error occurred while executing this line:
D:\openmicroscopy-openmicroscopy-5975f24\components\antlib\resources\global.xml:364: The following error occurred while executing this line:
D:\openmicroscopy-openmicroscopy-5975f24\components\bioformats\build.xml:312: The following error occurred while executing this line:
D:\openmicroscopy-openmicroscopy-5975f24\components\bioformats\ant\toplevel.xml:279: The following error occurred while executing this line:
D:\openmicroscopy-openmicroscopy-5975f24\components\bioformats\ant\java.xml: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\jre7"

Total time: 23 seconds

D:\openmicroscopy-openmicroscopy-5975f24>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_35

D:\openmicroscopy-openmicroscopy-5975f24>

After trawling online for a long time, trying to look for a solution to this issue, I eventually found one that involved setting 'fork="yes"' on the "javac" call.  I therefore added this line ('fork="yes"') to the following "javac" calls, and managed to get the build to complete successfully!

D:\openmicroscopy-openmicroscopy-5975f24\components\bioformats\ant\java.xml line 35
D:\openmicroscopy-openmicroscopy-5975f24\components\insight\build\app.xml line 140
D:\openmicroscopy-openmicroscopy-5975f24\components\insight\build\app.xml line 150
D:\openmicroscopy-openmicroscopy-5975f24\components\insight\build\app.xml line 160
D:\openmicroscopy-openmicroscopy-5975f24\components\insight\build\test.xml line 197

But is this the correct / best solution, or is anyone able to tell me of a better one?

Thanks
John



--------------------------------------------------------------------------------------------------------------------------------------------
John Webber
Computing and Information Services
NBI Partnership Ltd
Norwich Research park
Colney Lane
Norwich
NR4 7UH

E-Mail:  john.webber at nbi.ac.uk
Web:     http://www.nbi.ac.uk
Tel:        +44(0)1603 450 818

The NBI Partnership Ltd provides non-scientific services to the Institute of Food Research, the John Innes Centre, The Genome Analysis Centre and The Sainsbury Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20121012/8fa4238c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 106 bytes
Desc: image001.gif
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20121012/8fa4238c/attachment.gif>


More information about the ome-users mailing list