Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » 1.5 behavior on 64 bit version on Mac(method does not override a method from its superclass)
1.5 behavior on 64 bit version on Mac [message #634178] Wed, 20 October 2010 17:10 Go to next message
George Jones is currently offline George JonesFriend
Messages: 7
Registered: October 2010
Junior Member
Hi,
I'm running Eclipse Java EE IDE for Web Developers build 20100917-0705 on a Mac and I'm getting an "80: method does not override a method from its superclass" error from an @Override of an interface. I've read that the 64 bit version runs 1.6 but this seems to be a 1.5 problem. FWIW I can do a command line build using ant build just fine so I do have 1.6 installed and running fine - how can I get Eclipse to use 1.6?
Thanks,
George
Re: 1.5 behavior on 64 bit version on Mac [message #634525 is a reply to message #634178] Fri, 22 October 2010 06:20 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
You don't have to use java 1.6 for it. You could just change the project compliance.
Re: 1.5 behavior on 64 bit version on Mac [message #634669 is a reply to message #634525] Fri, 22 October 2010 16:51 Go to previous messageGo to next message
George Jones is currently offline George JonesFriend
Messages: 7
Registered: October 2010
Junior Member
I do have the compliance set for 1.6 - there are no errors showing in editor or on package - no red spots. It's only when I compile using ant that I see the error. I can use ant from the command line though.
Re: 1.5 behavior on 64 bit version on Mac [message #634673 is a reply to message #634669] Fri, 22 October 2010 17:16 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
What is the way you invoke the javac ant task ?
--
Olivier
Re: 1.5 behavior on 64 bit version on Mac [message #634674 is a reply to message #634673] Fri, 22 October 2010 17:17 Go to previous messageGo to next message
George Jones is currently offline George JonesFriend
Messages: 7
Registered: October 2010
Junior Member
ant build from command line, click on build from Eclipse.
Re: 1.5 behavior on 64 bit version on Mac [message #634688 is a reply to message #634674] Fri, 22 October 2010 18:12 Go to previous messageGo to next message
George Jones is currently offline George JonesFriend
Messages: 7
Registered: October 2010
Junior Member
Rather than using ant I used javac to compile file that was causing error.

javac src/cs636/pizza/domain/PizzaSize.java -d bin/ -classpath lib/javax.persistence_2.0.1.v201006031150.jar

That came back with no errors.
Re: 1.5 behavior on 64 bit version on Mac [message #634747 is a reply to message #634669] Fri, 22 October 2010 23:30 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
What is the way you invoke the javac ant task ?
--
Olivier
Re: 1.5 behavior on 64 bit version on Mac [message #635135 is a reply to message #634747] Mon, 25 October 2010 17:32 Go to previous message
George Jones is currently offline George JonesFriend
Messages: 7
Registered: October 2010
Junior Member
<project name="pizza2" default="compile" basedir=".">
<!-- CS636 pizza2 build file
Requires environment variables ORACLE_USER, ORACLE_PW, ORACLE_SITE, MYSQL_USER, MYSQL_PW.
Requires database tables set up: use build.xml in subdirectory database.
and/or reload-all target here.
NOTE: don't try to use the pizza1 database here: reload everything first.
-->
<!-- Global properties for this build -->
<property environment="env" />
<property name="database.dir" value="database" />
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="classes.dir" value="bin" />

<!-- Classpath declaration: all jars in lib -->
<path id="project.classpath">
<pathelement location="${classes.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>

<!-- Clean up -->
<target name="clean" description="Clean up the derived files">
<delete dir="${classes.dir}" />
<!-- delete junit test output -->
<delete>
<fileset dir="${basedir}">
<include name="TEST*.txt" />
</fileset>
</delete>
</target>

<target name="compile">
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" debug="on" destdir="${classes.dir}" classpathref="project.classpath">
<compilerarg value="-Xlint:deprecation" />
</javac>
</target>
<target name="build" depends="compile" />

blah blah
Previous Topic:Package Explorer shows the hidden projects
Next Topic:Refreshing external folders/resources
Goto Forum:
  


Current Time: Fri Apr 19 18:38:58 GMT 2024

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

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

Back to the top