Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Changing the SDK source in Xcode  (Read 2389 times)
0 Members and 1 Guest are viewing this topic.
Offline CupOfJoe

Junior Newbie

« Posted 2008-02-20 22:35:42 »

I keep getting this error:

generics are not supported in -source 1.3

which is from here in the build.XML:

   <target name="compile" depends="init" description="Compile code">
      <mkdir dir="${bin}"/>
      <javac deprecation="on" srcdir="${src}" destdir="${bin}"
            source="1.3" target="1.2"
            classpathref="lib.path" debug="${compile.debug}">

Does anyone know how to update the SDK so I can use generics? I'm assuming to J2SE 1.4.2.

Offline broumbroum

Junior Devvie

« Reply #1 - Posted 2008-02-21 00:12:08 »

change source="1.3" to 1.5 and so the same for the target option. Smiley Mac OS X is bundled with the JDK 1.5 .

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline CupOfJoe

Junior Newbie

« Reply #2 - Posted 2008-02-21 22:31:49 »

Thanks! I had a feeling that was it  (it looks quite obvious doesnt it...) but I didnt want to redirect any paths without being aware of what I was doing. I'd prefer to use Xcode over netbeans just because it is native but it didnt look like that was gonna work. Now I have been having a different problem that I thought was related but apparently not. I am unable to compile at all. I have heard a rumor that Xcode's compiler doesn't work on OS X 10.5.2, but that sounds just silly doesnt it? At any rate, I successfully changed  the SDK and target but would love to actually compile my code. I know the code is good and compliant because I compiled it on BlueJ. I will say the code is without a main method currently, could that effect it? I was wondering because netbeans wont let me compile single classes either.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline broumbroum

Junior Devvie

« Reply #3 - Posted 2008-02-21 22:37:19 »

xcode is ok with the last jdk 5. You may refer to for more help. And maybe creating a new ant project with Xcode can solve your problematic issue.  Smiley

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Jesse (10 views)
2015-07-29 04:35:27

Riven (33 views)
2015-07-27 16:38:00

Riven (16 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (10 views)
2015-07-27 12:23:39

BurntPizza (28 views)
2015-07-25 00:14:37

BurntPizza (39 views)
2015-07-24 22:06:39

BurntPizza (22 views)
2015-07-24 06:06:53

NoxInc (25 views)
2015-07-22 22:16:53

NoxInc (17 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!