Martin, have you checked "run under custom JDK" in Build file properties, Execution tab?
Also, from Ant docs: "...The fork attribute overrides the build.compiler setting and expects a JDK1.1 or higher to be set in java.home..." note the correct property name is "buid.compiler" (with "r" as the last letter). -- Edmundas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Buch, Martin Sent: Monday, March 18, 2002 8:30 PM To: '[EMAIL PROTECTED]' Subject: [Eap-list] #611 Ant using JDK 1.4 when running IntelliJ with 1.3.1 ??? Hi, I am running IntelliJ using JDK 1.3. My project should compile with JDK 1.4. This is working fine with normal project compile. Now I want to do that with Ant. Can anybody give me a hint how to tell Ant to use JDK1.4 javac for compilation ? It is always telling me it's java version is 1.3. I suppose because it uses the JAVA_HOME variable. I also get compile errors that I don't get normally. I've tried following without success: 1. setting build.compile property to "javac1.4" 2. setting classpath to include the tools.jar and rt.jar of JDK 1.4 It seems that at the moment the only way to use Ant is to start IntelliJ under JRE 1.4 (by setting JAVA_HOME). But IntelliJ does not recommend to do that. Any ideas ? Martin -- Martin Buch mailto:[EMAIL PROTECTED] sd&m AG http://www.sdm.de software design & management Thomas-Dehler-Str. 27, 81737 Muenchen, Germany Tel +49 89 63812-377, Fax -490 _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
