I too have had to override the JAVA_HOME JDK, though in my case it was to
compile for 1.3 rather than 1.4. What you seem to be missing is setting the
bootclasspath to the correct Java runtime library. Below is the
configuration I use. I hope this helps.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
<compilerArguments>
<bootclasspath>..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139
> -----Original Message-----
> From: Mang Jun Lau [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 27, 2006 5:28 PM
> To: [email protected]
> Subject: [M2] Compiling with JDK 1.4
>
>
> Hi,
>
> I've searched and tried the methods given before but things
> haven't been
> working for me. My JAVA_HOME points to the 1.5 JDK. I would like to
> compile my code to be able to run under JDK 1.4. So, in my
<snip>
> Hope someone has done this successfully before. Thanks.
>
>
> _Mang Lau
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]