Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 40393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:01:00+00:00 2026-05-10T15:01:00+00:00

just a quick question: I am a CS undergrad and have only had experience

  • 0

just a quick question:

I am a CS undergrad and have only had experience with the Eclipse, and Net Beans IDEs. I have recently acquired a Macbook and was wanting to recompile a recent school project in Xcode just to test it out. Right after the line where I declare a new instance of an ArrayList:

dictionary = new ArrayList<String>();  

I get the following error: generics are not supported in -source 1.3.

I was just wondering if anybody could offer advice as to what the problem might be. The same project compiles in Eclipse on the same machine. I’m running OSX 10.5.4, with Java 1.5.0_13.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:01:01+00:00Added an answer on May 10, 2026 at 3:01 pm

    Java support in Xcode is obsolete and unmaintained; it’s the only bit of Xcode that still uses the ‘old’ build system inherited from Project Builder. Even Apple suggests using Eclipse instead. For Java, both Eclipse and NetBeans work quite well on the Mac; if you want to try native Mac programming, use Objective-C and Cocoa, for which Xcode is fine.

    That said, the problem is that javac is targeting Java 1.3, which doesn’t have generics. You can modify the javac reference in the Ant buildfile (build.xml) as follows:

        <target name='compile' depends='init' description='Compile code'>     <mkdir dir='${bin}'/>     <javac deprecation='on' srcdir='${src}' destdir='${bin}'            source='1.3' target='1.2' 

    Change ‘source’ and ‘target’ to ‘1.5’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a quick question if I may, I have always (since learning obj-c) written
Just a quick question. I have a system which contains some silverlight elements to
just a quick question. Is there any difference between void f(Foo x) try {
Just a quick question on Core Location, I'm trying to calculate the distance between
Just one quick question, say, Car class extends HashMap(String, String). 1. for (Car car
Just a quick question. I can get a form to show with other exceptions,
Just a quick question on printk() function at the kernel level, if I call
Just a quick question. If I wanted to set up load balancing for my
just a quick question I seem to be unable to find an answer to.
Just a quick question, that I cannot fathom out, hope you guys and girls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.