Hi,
[EMAIL PROTECTED] schrieb:
>> 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
>>
>> JAVA_HOME and property java.home both point to the base dir of the jdk.
>>
>
> really a jDk?
> Is there a ${java.home}/bin/javac ?
>
>
I've inserted this target to be sure:
<target name="debug">
<echo message="java.home=${java.home}"/>
<available file="${java.home}/bin/javac" property="javac.present"/>
<echo message="javac available: ${javac.present}"/>
</target>
It's called right before I call the target using javac.
Output is:
java.home=/synyx/tools/sun/1.5.0
javac available: true
The target I'm using for compiling is (obviously torque ;)) this:
<target
name="compile"
description="==> compiles the OM classes">
<mkdir dir="${torque.compile.build.dir}"/>
<javac
debug="${torque.compile.debug}"
deprecation="${torque.compile.deprecation}"
destdir="${torque.compile.build.dir}"
optimize="${torque.compile.optimize}"
srcdir="${torque.compile.src.dir}">
<classpath refid="torque-classpath"/>
</javac>
</target>
The classpath points to several jars used by torque. I've tried to add
java.home or tools.jar directly to it, but it didn't work either.
If anybody has further suggestions I would be grateful.
Kind regards
Florian
--
/**
* Florian Hopf
* Synyx GmbH & Co. KG
* phone +49(0)721 9118303
* eMail [EMAIL PROTECTED]
* www http://www.synyx.de
* irc irc://irc.synyx.de
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]