Java in Xcode & versions

Carlis

Senior member
May 19, 2006
237
0
76
I just started to do some exercises of java during my summer break. Now it seems that the java version on my computer is not the same as the one used in my handbook.

Im running OSX IV and xcode 2.4.1. How do I know what version of java Im running and do I only have to install a new version of java on my system to uppdate it for xcode as well?



 

TheStu

Moderator<br>Mobile Devices & Gadgets
Moderator
Sep 15, 2004
12,089
45
91
Well the question is, is the version of Java on teh Mac older or newer than in your handbook?

You may alternatively want to check out Eclipse, that is built on java and by default handles java coding. It is an alright little IDE, I personally prefer XCode, but that is sometimes a little too much just for simple java or C++ programs.
 

AmigaMan

Diamond Member
Oct 12, 1999
3,644
1
0
you can open a terminal window and type "java -version" to see what you're running. On my MBP, it responds with

java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode)
 

Carlis

Senior member
May 19, 2006
237
0
76
Excelent. It seems I have the same one as you have. Like TheStu said it could be my book that is old... So I guess its online sources from now on. But the version of java is specific to my system rather then any program, right?
 

TheStu

Moderator<br>Mobile Devices & Gadgets
Moderator
Sep 15, 2004
12,089
45
91
It should be system wide yes, If you were to get a new IDE that came with a new version of Java, then it would in theory update the whole system.