Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cbrain

macrumors 65816
Original poster
Dec 9, 2006
1,049
0
North-East, UK
Hi,

I would like to start learning Java and writing programs with it on the mac.

Can anyone tell me a good site and a compiler to get me started please?

Thanks.
 
I'm thinking about the same thing. Looks like netbeans might be the ticket.

The only thing that I'm not sure about is that the latest version of the Java JDK (version 6) is available on Mac OS X?
 
Looks like you could use it as the IDE don't know about compiler though. Personally I'd prefer a cross-platform IDE anyway.
 
If you are just starting out go ahead and use Xcode. Everything you need is in the developer tools on your OSX CD.

Later on I would recommend using Eclipse. I used to use NetBeans, thought it was great, but have since been converted to Eclipse.
 
you can compile through Xcode, eclipse, or just through the terminal
javac filename.java
to compile it
java filename
to run it
If you have multiple files using each other than by compiling your main starting file all other files should compile at the same time.:apple:
 
If you are just starting out go ahead and use Xcode. Everything you need is in the developer tools on your OSX CD.

Later on I would recommend using Eclipse. I used to use NetBeans, thought it was great, but have since been converted to Eclipse.

is Eclipse free? i think NetBeans is free.
 
Yeah I'm pretty sure Eclipse is free (money) too. It's also open source.

Does anyone know if/when the latest Java is going to be available for the Mac?
 
Another vote for Eclipse, it's what I started coding Java on and it's really easy to get into and start using. Though, if you plan on not hardcoding your interfaces, go with netbeans.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.