Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I do Java 6 development in OS X?

Tags:

java

macos

I know when Leopard came out everybody (well, everybody that was a Java developer and cared enough to do development on a Mac) was pissed that there was no Java 6 SDK support. I know somebody provided some kind of hack way a few months after Leopard was released, but I could have sworn that I read sometime later that Apple and/or Sun finally put out an official version of the Java 6 SDK.

So now a year and a half later I am finally interested in doing some Java dev on the Mac (thank Google App Kit for that). But when I go to Apple's Java site... all I see is stuff about Java 5.

So, can I do Java 6 on a Mac?

See also: Installing Java 6 on Mac OS

like image 257
bpapa Avatar asked Apr 11 '09 02:04

bpapa


People also ask

Can you develop Java on Mac?

Apple give you a very quick and easy way to get started installing Java on your system: Open up a Terminal session by launching the Terminal app. You can navigate to this within Finder, just go to Applications > Utilities > Terminal.


2 Answers

Yes, JDK6 is available, and it is quite nice, for example it supports DTrace, which otherwise you only get on Solaris.

The main drawback is that Apple is very aggressive in deprecating older hardware (and OS versions). Java6 will never be released for Mac versions before 10.5, and only works on 64bit Intel. That also kills native 32 bit libraries, such as SWT/Carbon, which is what Eclipse uses (they need to move to Cocoa now).

Update: Snow Leopard apparently has Java6 for 32bit Intel, too (in addition to 64bit).

like image 112
Thilo Avatar answered Oct 06 '22 18:10

Thilo


http://developer.apple.com/java/ (which is only for 64-bit Macs)

http://landonf.bikemonkey.org/static/soylatte/ (SoyLatte, a separate Java 6 port).

like image 44
Don Werve Avatar answered Oct 06 '22 16:10

Don Werve