David:

You stated that you're moving "from" maven2 to ant.  You need to be sure
that the proper version of java is set on your path.  If you type "$java
-version" and it's not what you expect, then the Ubuntu java symbolic link
is probably in place and an old version is installed somewhere.

Do a "which java" on the command line and you'll get the path to
$JAVA_HOME/bin as it's set right now.  You can leave the old java installed
if you like by just deleting the symbolic link and recreating it pointing
the $JAVA_HOME/bin of your choice.  Reply with any other questions if this
doesn't work for you.

Thanks

David W

On 11/8/06, David Lund <[EMAIL PROTECTED]> wrote:

JDK Problem :

Im using Ubuntu Dapper Drake v6.06.

I have an existing project that I'm trying to convert to maven2 from
ant. However, I'm having JDK issues, basically its compiling in JDK 1.3
rather than 1.5, see error below:

LinkGroup.java:[16,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public Collection<ContentLink> getEntities();

I have set the JAVA_HOME variable to point to JDK 1.5, however the
interesting thing is I dont have java 1.3 installed so I dont know where
its picking that version up from. Could this be a Unbuntu problem, as I
noticed Maven2 hadn't been tested on it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to