You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Martin <mj...@gmail.com> on 2006/02/20 19:03:00 UTC
Apache ADF Faces requires JDK 1.5
I have been trying to build adf faces from the apache drop, but some of the
source uses annotations which means I can't compile it (or use it) with jdk 1.4.
Is there any solution to this? Will adf faces require jdk 1.5?
I have been following Matthias instructions to build adf faces here:
http://www.mail-archive.com/users@myfaces.apache.org/msg16856.html
The following post seems to imply I can compile using 1.4:
http://www.mail-archive.com/users@myfaces.apache.org/msg16836.html
adf-faces-ea19 works with jdk 1.4.
Thanks
Martin
Re: Apache ADF Faces requires JDK 1.5
Posted by Sean Schofield <se...@gmail.com>.
The ADF stuff is in incubation right now so there are all sorts of
possibilities for change. I envision a lively discussion where
discuss the pros and cons of allowing tomahawk, tobago or adf to use
jdk 1.5 functionality. Currently tomahawk does not have any jdk 1.5
stuff (that I am aware of.)
Sean
On 2/21/06, Martin <mj...@gmail.com> wrote:
> Craig McClanahan <craigmcc <at> apache.org> writes:
>
> >
> >> On 2/21/06, Martin <mjdenham <at> gmail.com> wrote:
> >> I have tried this already, but unfortunately it does not work (although I am
> >> not experienced with maven).I changed the source and target tags in
> >> adf-faces/pom.xml as below:
> >>
> >> <source>1.5</source>
> >> <target>1.4</target>
> >> but get the error: [INFO] Compilation failure Failure executing javac, but
> >> could not parse the error: javac: source release 1.5 requires target
> release 1.5
> >
> > That is not a Maven issue ... it is a Java restriction. If you want to say
> > target=1.4, then you cannot say source=1.5 because the new source format
> > requires features in the class format that were not present in the 1.4
> > version.
> >
> >
> > Regards
> >
> > Craig
> Thanks for the responses and clarifications. This means there is no way to use
> the Apache ADF Faces as it stands on JDK 1.4.
>
> Maybe the JDK 1.5 specific code could be edited to make it compatible with JDK
> 1.4. I don't think this would be too hard as the oracle ea19 version was
> compatible with JDK 1.4.
>
>
>
>
Re: Apache ADF Faces requires JDK 1.5
Posted by Martin <mj...@gmail.com>.
Craig McClanahan <craigmcc <at> apache.org> writes:
>
>> On 2/21/06, Martin <mjdenham <at> gmail.com> wrote:
>> I have tried this already, but unfortunately it does not work (although I am
>> not experienced with maven).I changed the source and target tags in
>> adf-faces/pom.xml as below:
>>
>> <source>1.5</source>
>> <target>1.4</target>
>> but get the error: [INFO] Compilation failure Failure executing javac, but
>> could not parse the error: javac: source release 1.5 requires target
release 1.5
>
> That is not a Maven issue ... it is a Java restriction. If you want to say
> target=1.4, then you cannot say source=1.5 because the new source format
> requires features in the class format that were not present in the 1.4
> version.
>
>
> Regards
>
> Craig
Thanks for the responses and clarifications. This means there is no way to use
the Apache ADF Faces as it stands on JDK 1.4.
Maybe the JDK 1.5 specific code could be edited to make it compatible with JDK
1.4. I don't think this would be too hard as the oracle ea19 version was
compatible with JDK 1.4.
Re: Apache ADF Faces requires JDK 1.5
Posted by Craig McClanahan <cr...@apache.org>.
On 2/21/06, Martin <mj...@gmail.com> wrote:
>
> I have tried this already, but unfortunately it does not work (although I
> am not
> experienced with maven).
>
> I changed the source and target tags in adf-faces/pom.xml as below:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <excludes>
> <exclude>**/.ade_path/**</exclude>
> </excludes>
> <testExcludes>
> <exclude>**/.ade_path/**</exclude>
> </testExcludes>
> <compilerVersion>1.5</compilerVersion>
> <source>1.5</source>
> <target>1.4</target>
> </configuration>
> </plugin>
>
> but get the error:
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> javac: source release 1.5 requires target release 1.5
That is not a Maven issue ... it is a Java restriction. If you want to say
target=1.4, then you cannot say source=1.5 because the new source format
requires features in the class format that were not present in the 1.4version.
Regards
>
> Martin
Craig
Re: Apache ADF Faces requires JDK 1.5
Posted by Martin <mj...@gmail.com>.
I have tried this already, but unfortunately it does not work (although I am not
experienced with maven).
I changed the source and target tags in adf-faces/pom.xml as below:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<excludes>
<exclude>**/.ade_path/**</exclude>
</excludes>
<testExcludes>
<exclude>**/.ade_path/**</exclude>
</testExcludes>
<compilerVersion>1.5</compilerVersion>
<source>1.5</source>
<target>1.4</target>
</configuration>
</plugin>
but get the error:
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
javac: source release 1.5 requires target release 1.5
Regards
Martin
Re: Apache ADF Faces requires JDK 1.5
Posted by Matthias Wessendorf <mw...@gmail.com>.
The maven2-compiler plugin allows you to configure source/target for
your java compiler. You might give this a try ([1]), not used myself.
-Matthias
[1] - http://maven.apache.org/plugins/maven-compiler-plugin/howto.html
On 2/21/06, Wayne Fay <wa...@gmail.com> wrote:
> Have you tried compiling with JDK 1.5 but targeting JDK 1.4?
>
> javac -help
> -source <release> Provide source compatibility with specified release
> -target <release> Generate class files for specific VM version
>
> Something along the lines of "javac -source 1.5 -target 1.4 ..."
>
> I haven't tried this myself, so give it a try and report back to the list.
>
> Wayne
>
>
> On 2/20/06, Martin <mj...@gmail.com> wrote:
> > I have been trying to build adf faces from the apache drop, but some of the
> > source uses annotations which means I can't compile it (or use it) with jdk 1.4.
> >
> > Is there any solution to this? Will adf faces require jdk 1.5?
> >
> > I have been following Matthias instructions to build adf faces here:
> > http://www.mail-archive.com/users@myfaces.apache.org/msg16856.html
> >
> > The following post seems to imply I can compile using 1.4:
> > http://www.mail-archive.com/users@myfaces.apache.org/msg16836.html
> >
> > adf-faces-ea19 works with jdk 1.4.
> >
> > Thanks
> >
> > Martin
> >
> >
>
--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com
Re: Apache ADF Faces requires JDK 1.5
Posted by Wayne Fay <wa...@gmail.com>.
Have you tried compiling with JDK 1.5 but targeting JDK 1.4?
javac -help
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
Something along the lines of "javac -source 1.5 -target 1.4 ..."
I haven't tried this myself, so give it a try and report back to the list.
Wayne
On 2/20/06, Martin <mj...@gmail.com> wrote:
> I have been trying to build adf faces from the apache drop, but some of the
> source uses annotations which means I can't compile it (or use it) with jdk 1.4.
>
> Is there any solution to this? Will adf faces require jdk 1.5?
>
> I have been following Matthias instructions to build adf faces here:
> http://www.mail-archive.com/users@myfaces.apache.org/msg16856.html
>
> The following post seems to imply I can compile using 1.4:
> http://www.mail-archive.com/users@myfaces.apache.org/msg16836.html
>
> adf-faces-ea19 works with jdk 1.4.
>
> Thanks
>
> Martin
>
>