Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2005

Tip: Looking for answers? Try searching our database.

Mac OS X Issue

Thread view: 
Aleksandar Pecanov - 15 Apr 2005 20:05 GMT
Just a warning. This may be a little weird:
I don't have the opportunity to test an applet on Mac OS X, but there
are complains about a certain error occurrence.
When the applet is loaded an exception is thrown with the error message
(in console) :
java.lang.NoSuchFieldError: BLUE
My best guess is that this the Color.BLUE awt contstant is missing. They
claim the error occurs on both firefox and safari on jdk 1.4.2.

Is there no such definition on jdk for Mac?
John B. Matthews - 16 Apr 2005 04:39 GMT
> Just a warning. This may be a little weird:
> I don't have the opportunity to test an applet on Mac OS X, but there
[quoted text clipped - 6 lines]
>
> Is there no such definition on jdk for Mac?

Under Mac OS 10.3.8, Java 1.4.2 & Safari 1.2.4, both Color.BLUE and
Color.blue work correctly. Is BLUE a field in one of _your_ classes,
too?

Signature

John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/

Steve W. Jackson - 18 Apr 2005 16:51 GMT
> > Just a warning. This may be a little weird:
> > I don't have the opportunity to test an applet on Mac OS X, but there
[quoted text clipped - 10 lines]
> Color.blue work correctly. Is BLUE a field in one of _your_ classes,
> too?

Apple has its own Java 1.3.1 API link posted, and there is in fact no
field in the Color class named BLUE.  The same was true of those from
Sun.  But with the 1.4.1 and 1.4.2 APIs, Apple no longer even has any
API JavaDocs posted (that I'm aware of).  Instead, they only offer an
API for Apple's extensions.  In either case, their standard APIs matched
Sun's.

So the question to answer, if indeed the error is related to Color.BLUE,
is just which Java is in use on the machine where this error occurred.  
Java 1.4.2 is not available in OS X 10.2 and earlier, if I understand
correctly.  And it wasn't available when 10.3 was released, so it won't
be there on 10.3.x systems unless an update was applied.  And even then,
only Safari would use it automatically -- most other browsers will need
some kind of help, if they can use the newer Java at all.  I'm pretty
sure that's true of Firefox too, which I use, but I can't say positively
(not having looked into the issue, as I don't use many pages that have
applets on them).

You may want to prod the Mac user in question for more certainty in
what's present and the conditions under which the error surfaced.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.