Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
ant and softlinks in cygwin

ant and softlinks in cygwin

2003-02-10       - By Klara Ward

I tried to run the javac task when my javadir was a softlink made in
cygwin, and it didn't work.
Ant started, which it didn't when I tried having the javadir as a
windows shortcut, but javac didn't work:

   [javac] Modern compiler is not available - using classic compiler
   [javac] Compiling 265 source files to
C:\views\MI_VIKING_CROSIS_klara\jrocki
t\build\win32-j2se1.4.1\debug\classes

BUILD FAILED

c:\views\MI_VIKING_CROSIS_klara\jrockit\build\win32-j2se1.4.1\debug\..\..\..\mak
e\classes\build.xml:206: Cannot use classic compiler, as it is not
available A c
ommon solution is to set the environment variable JAVA_HOME to your jdk
directory.


This is the softlink.

lrwxrwxrwx    1 Administ None          100 Feb 10 13:24 java141 ->
java141_01

ant is started with this java from withing a .cmd file that is run in
cygwin.

neither ANT_HOME nor JAVA_HOME has been set.

Klara





©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.