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: J2SE 5 on OS X, Panther.



As I suspected (and you've probably been alluding too) Swing seems to
be pretty broken using this approach. Swing being one of the larger
areas of Apple's influence in the J2SE, and therefore I suspect more
closely tied to Tiger than non UI stuff (which is where I usually
play).

First, the summary. It would appear that a fair amount of the UI
tooling is broken. I was not the least bit surprised at this. I've
been far more interested in Java 5's new programming constructs
(Annotations, Generics, Enumerations) and some of the new libraries
(java.util.concurrent), than UI kits.

Sorry to give anyone false hope on the UI front. At least SWT seems to
be working. *Quickly closes that can of worms...*

Also worth pointing out that the shared common library function of
Java 5's Hotspot also does not appear to be working. So running
multiple java apps will still guzzle memory like an SUV on the
autobahn.

Starting with the most catastrophic failure first...

Feeling ambitious I decided to take a swing at Project Looking Glass.
<https://lg3d-core.dev.java.net/lg3d-getting-started.html> I don't
know what to really expect here, but hey, what good is having a
rootless X11 server if we don't try and use it everytime the
opportunity presents itself. :)

+ I installed the Java3d/JAI dmg for 1.4.
<http://www.apple.com/downloads/macosx/apple/java3dandjavaadvancedimagingupdate.html>
+ Ignored 75% of the Linux/X11 specific garbage at
<https://lg3d-core.dev.java.net/lg3d-getting-started.html>. (If I had
really enjoyed fiddling with X so much I wouldn't have bought a Mac in
the first place)
+ Consulted with some kindred spirits in Japan
<http://oss.timedia.co.jp/index.cgi/kahua-web/show/column/hibi/lg3d-macos-java14-en>
(No I didn't apply Retroweaver, that would be cheating.)
+ Launched X11.app
+ in xterm (Not Terminal.app) $ tar xzf lg3d-0-6-1.tar.gz
+ $ cd lg3d/bin
+ $ ./lg3d-dev
~/Desktop/lg3d/bin ~/Desktop/lg3d/bin 
~/Desktop/lg3d/bin 
LG_SETTINGS -Dlg.etcdir=/Users/corey/Desktop/lg3d/bin/../etc/
csh: pkill: Command not found.
[1] 9571
HotSpot not at correct virtual address. Sharing disabled.
Trace/BPT trap  

Not too exciting. It did kindly leave an rmiregistry process stranded,
so that successive attempts resulted in a BindException. ($ `killall
rmiregisty`) Oh, well maybe I'll just stick with Aqua. ;)


I tried a couple other apps:

SquirrelSQL -- http://squirrel-sql.sourceforge.net/
  Worked, but turns out it still points at 1.3.1. Silly Rabbit.


BlueJ -- http://www.bluej.org/
  Failed with linking errors (from JavaApplicationStub.crash.log)
Link (dyld) error:

dyld: /Users/corey/Applications/BlueJ.app/Contents/MacOS/JavaApplicationStub Und
efined symbols:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnil
ib undefined reference to _kCTForegroundColorFromContextAttributeName expected t
o be defined in ApplicationServices
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnil
ib undefined reference to _NSAccessibilityTopLevelUIElementAttribute expected to
 be defined in Cocoa
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnil
ib undefined reference to _NSAccessibilityInsertionPointLineNumberAttribute expe
cted to be defined in Cocoa


A random googled applet. Worked in FireFox (probably not using Java
5), but dies using appletviewer
  $ appletviewer http://members.aol.com/shadows125/aster.htm      
HotSpot not at correct virtual address. Sharing disabled.
dyld: appletviewer Undefined symbols:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib
undefined reference to _kCTForegroundColorFromContextAttributeName
expected to be defined in ApplicationServices
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib
undefined reference to _NSAccessibilityTopLevelUIElementAttribute
expected to be defined in Cocoa
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib
undefined reference to
_NSAccessibilityInsertionPointLineNumberAttribute expected to be
defined in Cocoa
Trace/BPT trap

Corey


On 4/30/05, Dmitry Markman <email@hidden> wrote:
> very good thanks
> 
> but what about swing application?
> 
> eclipse isn't swing application and eclipse doesn't use any of java
> widgets
> 
> thanks for your efforts
> 
> 
> On Apr 30, 2005, at 7:01 PM, Corey Jewett wrote:
> 
> > Eclipse 3.1M6 Help->About Eclipse Platform ->Configuration Details:
> >
> > Before running script:
> > java.vendor=Apple Computer, Inc.
> > java.vendor.url=http://apple.com/
> > java.vendor.url.bug=http://developer.apple.com/java/
> > java.version=1.4.2_05
> > java.vm.info=mixed mode
> > java.vm.name=Java HotSpot(TM) Client VM
> > java.vm.specification.name=Java Virtual Machine Specification
> > java.vm.specification.vendor=Sun Microsystems Inc.
> > java.vm.specification.version=1.0
> > java.vm.vendor="Apple Computer, Inc."
> > java.vm.version=1.4.2-38
> >
> > After:
> > java.vendor=Apple Computer, Inc.
> > java.vendor.url=http://apple.com/
> > java.vendor.url.bug=http://developer.apple.com/java/
> > java.version=1.5.0_02
> > java.vm.info=mixed mode
> > java.vm.name=Java HotSpot(TM) Client VM
> > java.vm.specification.name=Java Virtual Machine Specification
> > java.vm.specification.vendor=Sun Microsystems Inc.
> > java.vm.specification.version=1.0
> > java.vm.vendor="Apple Computer, Inc."
> > java.vm.version=1.5.0_02-36
> >
> > Corey
> >
> >
> > On 4/30/05, Dmitry Markman <email@hidden> wrote:
> >
> >> are you sure that eclipse is running in java 5 jvm?
> >>
> >> did you try to run swing application (java2d for example) with java 5
> >> on Panther?
> >>
> >> thanks
> >>
> >> On Apr 30, 2005, at 2:32 PM, Corey Jewett wrote:
> >>
> >>
> >>> The Tiger J2SE release has been rumored to run on Panther for a
> >>> number
> >>> of months. Apple released Java 5, and since it'll be a bit before I
> >>> get around to installing Tiger, and I've been not so patiently
> >>> waiting to run Java 5 for months. I decided to see if the Java 5
> >>> release would indeed run on Panther.
> >>>
> >>> Attached is a shell script that will unpack the Tiger J2SE disk
> >>> image
> >>> onto a Panther system. This is obviously completely unsupported by
> >>> Apple and myself. Enjoy.
> >>>
> >>> So far I haven't had any issues running Eclipse 3.1M6.
> >>>
> >>> Get the DMG here:
> >>> http://www.apple.com/support/downloads/
> >>> java2se50developerdocumentation.html
> >>>
> >>> Corey
> >>>
> >>>
> >>> <Java5ForPanther.sh>
> >>>  _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> Java-dev mailing list      (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> http://lists.apple.com/mailman/options/java-dev/email@hidden
> >>>
> >>> This email sent to email@hidden
> >>>
> >>
> >> Dmitry Markman
> >>
> >>
> >
> 
> Dmitry Markman
> 
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >J2SE 5 on OS X, Panther. (From: Corey Jewett <email@hidden>)
 >Re: J2SE 5 on OS X, Panther. (From: Dmitry Markman <email@hidden>)
 >Re: J2SE 5 on OS X, Panther. (From: Corey Jewett <email@hidden>)
 >Re: J2SE 5 on OS X, Panther. (From: Dmitry Markman <email@hidden>)



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.