ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahamim, Zvi (Zvi) ** CTR **" <>
Subject Specifying jdk compiler
Date Sun, 01 Jun 2003 06:02:28 GMT
I have an ant script that use the javac and rmic tasks.
They use the jdk that runs ant (I don't use fork in the javac task)
Now I want to use another compiler and I used fork and executable attributes in the javac
task but then the rmic task failed with the following error:
Cannot use SUN rmic, as it is not available.  A common solution is to set the environment
1. Can you tell me why it happens and how to solve it ?

I have jdk on my computer on a different pathes and with different versions (e.g: I:/Projects/JavaDevel/jdk1.3.1_02/
and I:/Projects/JavaDevel/jdk1.4.1_02/)
2. I know that I can use the javac executable attribute to compile with the above compilers,
but how can I get from withing the script their versions (by now I've used the property value:
3. If I want to create a class for Javac_131_02 and Javac_141_02 that compiles using the above
jdk, how can I do it (except for extends DefaultCompilerAdapter)?

Thanks in advance!!!

View raw message