Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java ?



>> At 8:43 PM -0500 6/20/01, Karl Kuehn wrote:
>> > Sorry, no joy here. Darwin does not include Java. My guess is
>> >it has something to do with licensing the HotSpot code that they use
>> >in MacOS X, but that is purely a guess.
>>
>> I thought it had something to do with AWT and Swing using Carbon
>> based calls which are not in Darwin?
>>
>> mark
>>
>I thought that AWT and Swing were in all versions of Java, and it was just the
>way the JDK/JRE was written into OS X that made them dependent on Carbon. You
>SHOULD be able to get AWT and Swing to work in a version of X on Darwin,
>provided you've got a compatible VM, shouldn't you? (my point being that it's
>not really AWT/Swing that's the issue, it's getting a Darwin-only VM instead
>of a Darwin/OS X VM, which is what's actually installed in X). Or am I off
>the mark here?

The JVM just interprets byte codes. HeavyWeight widgets like AWT are based
on native "peer" widgets which are implemented using the native operating
system's graphcis toolkit. For OSX this toolkit is carbon. For UNIX-based
systems running X-Windows, the native toolkit is Xt. Somebody has to write
an implementation of the heavyweight AWT peers using these native toolkits.

Carbon is not available to Darwin, so Apple's implementation of java will
not run there. The most likely candidate port to Darwin would be the
Blackdown linux java port which is X-Windows based. You might try poking
about the Blackdown site at www.blackdown.org.

Hope that helps,

-- Bryan Cheung
email@hidden

P.S. I believe that the blackdown code is what is used for java in most of
the LinuxPPC distros.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.