Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
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 2222 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:

1  
generics are not supported in -source 1.3


which is from here in the build.XML:

1  
2  
3  
4  
5  
6  
7  
 
   <target name="compile" depends="init" description="Compile code">
      <mkdir dir="${bin}"/>
      <javac deprecation="on" srcdir="${src}" destdir="${bin}"
            source="1.3" target="1.2"
            includeAntRuntime="no"
            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 Member





« 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 @ http://b23prodtm.webhop.info
on sf.net: /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 Member





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

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

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!