Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant build uses JDK 1.3 instead of 1.4
Ant build uses JDK 1.3 instead of 1.4 [message #110091] Fri, 24 October 2003 09:30 Go to next message
Eclipse UserFriend
Originally posted by: felix.mayer.comcast.net

I am doing an ant build of my plug-in with the Eclipse-generated build.xml.
I use assertions in some places, which are compiled just fine by the IDE as
long as I set the Java compiler version to 1.4. However, when I run the ant
build it gives me a compilation error for every assertion.
Is there another place where I need to set the JDK?
Re: Ant build uses JDK 1.3 instead of 1.4 [message #110121 is a reply to message #110091] Fri, 24 October 2003 11:10 Go to previous messageGo to next message
Eclipse UserFriend
The build.xml that is generated by "Create Ant Build file" has the following
properties defined:

<property name="javacSource" value="1.3"/>
<property name="javacTarget" value="1.1"/>

You should modify these to be 1.4 and 1.2 respectively (either by editing
the file or by using arguments: -DjavacSource=1.4...etc)

HTH
Darins

"Felix Mayer" <felix.mayer@comcast.net> wrote in message
news:bnb9jv$kms$1@eclipse.org...
> I am doing an ant build of my plug-in with the Eclipse-generated
build.xml.
> I use assertions in some places, which are compiled just fine by the IDE
as
> long as I set the Java compiler version to 1.4. However, when I run the
ant
> build it gives me a compilation error for every assertion.
> Is there another place where I need to set the JDK?
>
>
Re: Ant build uses JDK 1.3 instead of 1.4 [message #110152 is a reply to message #110121] Fri, 24 October 2003 11:17 Go to previous messageGo to next message
Eclipse UserFriend
And to better set this for all future generated buildfiles...see
Window>Preferences>Plug-In Development>Build Option

HTH
Darins

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:bnbfbt$r1e$1@eclipse.org...
> The build.xml that is generated by "Create Ant Build file" has the
following
> properties defined:
>
> <property name="javacSource" value="1.3"/>
> <property name="javacTarget" value="1.1"/>
>
> You should modify these to be 1.4 and 1.2 respectively (either by editing
> the file or by using arguments: -DjavacSource=1.4...etc)
>
> HTH
> Darins
>
> "Felix Mayer" <felix.mayer@comcast.net> wrote in message
> news:bnb9jv$kms$1@eclipse.org...
> > I am doing an ant build of my plug-in with the Eclipse-generated
> build.xml.
> > I use assertions in some places, which are compiled just fine by the IDE
> as
> > long as I set the Java compiler version to 1.4. However, when I run the
> ant
> > build it gives me a compilation error for every assertion.
> > Is there another place where I need to set the JDK?
> >
> >
>
>
Re: Ant build uses JDK 1.3 instead of 1.4 [message #110329 is a reply to message #110152] Fri, 24 October 2003 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: felix.mayer.comcast.net

Are you talking about Eclipse 3.0? I am using 2.1.1.
In build.xml there are no such properties, and adding them doesn't change
anything.
Also the Preferences dialog doesn't have any Build Option.
Should I move to Eclipse 3.0?

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:bnbfot$rgi$1@eclipse.org...
> And to better set this for all future generated buildfiles...see
> Window>Preferences>Plug-In Development>Build Option
>
> HTH
> Darins
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:bnbfbt$r1e$1@eclipse.org...
> > The build.xml that is generated by "Create Ant Build file" has the
> following
> > properties defined:
> >
> > <property name="javacSource" value="1.3"/>
> > <property name="javacTarget" value="1.1"/>
> >
> > You should modify these to be 1.4 and 1.2 respectively (either by
editing
> > the file or by using arguments: -DjavacSource=1.4...etc)
> >
> > HTH
> > Darins
> >
> > "Felix Mayer" <felix.mayer@comcast.net> wrote in message
> > news:bnb9jv$kms$1@eclipse.org...
> > > I am doing an ant build of my plug-in with the Eclipse-generated
> > build.xml.
> > > I use assertions in some places, which are compiled just fine by the
IDE
> > as
> > > long as I set the Java compiler version to 1.4. However, when I run
the
> > ant
> > > build it gives me a compilation error for every assertion.
> > > Is there another place where I need to set the JDK?
> > >
> > >
> >
> >
>
>
Re: Ant build uses JDK 1.3 instead of 1.4 [message #110354 is a reply to message #110329] Fri, 24 October 2003 17:58 Go to previous message
Eclipse UserFriend
If you don't state the build that you are using I assume 3.0 :-)
If you move to 3.0 you can follow the instructions I gave.

Darins

"Felix Mayer" <felix.mayer@comcast.net> wrote in message
news:bnc3bc$eh0$1@eclipse.org...
> Are you talking about Eclipse 3.0? I am using 2.1.1.
> In build.xml there are no such properties, and adding them doesn't change
> anything.
> Also the Preferences dialog doesn't have any Build Option.
> Should I move to Eclipse 3.0?
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:bnbfot$rgi$1@eclipse.org...
> > And to better set this for all future generated buildfiles...see
> > Window>Preferences>Plug-In Development>Build Option
> >
> > HTH
> > Darins
> >
> > "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> > news:bnbfbt$r1e$1@eclipse.org...
> > > The build.xml that is generated by "Create Ant Build file" has the
> > following
> > > properties defined:
> > >
> > > <property name="javacSource" value="1.3"/>
> > > <property name="javacTarget" value="1.1"/>
> > >
> > > You should modify these to be 1.4 and 1.2 respectively (either by
> editing
> > > the file or by using arguments: -DjavacSource=1.4...etc)
> > >
> > > HTH
> > > Darins
> > >
> > > "Felix Mayer" <felix.mayer@comcast.net> wrote in message
> > > news:bnb9jv$kms$1@eclipse.org...
> > > > I am doing an ant build of my plug-in with the Eclipse-generated
> > > build.xml.
> > > > I use assertions in some places, which are compiled just fine by the
> IDE
> > > as
> > > > long as I set the Java compiler version to 1.4. However, when I run
> the
> > > ant
> > > > build it gives me a compilation error for every assertion.
> > > > Is there another place where I need to set the JDK?
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:[ANN] SWT Designer FormLayout Preview Pics
Next Topic:Configure Web App
Goto Forum:
  


Current Time: Tue Jul 22 02:01:57 EDT 2025

Powered by FUDForum. Page generated in 0.10152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top