• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.util.prefs.Preferences not found?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.util.prefs.Preferences not found?


  • Subject: Re: java.util.prefs.Preferences not found?
  • From: Nicholas Riley <email@hidden>
  • Date: Tue, 18 Feb 2003 03:20:28 -0600
  • Mail-followup-to: Sean Gilbertson <email@hidden>, email@hidden

On Tue, Feb 18, 2003 at 03:55:42AM -0500, Sean Gilbertson wrote:
> Hey everyone,
>
> I'm attempting to use the java.util.prefs.Preferences class to save
> and load some preferences, and I get this error message upon execution:
>
> Stack Trace:
> java.lang.NoClassDefFoundError: java/util/prefs/Preferences
> at java.lang.Class.getMethods0(Native Method)
> at java.lang.Class.getDeclaredMethods(Class.java:1034)

Just read the error message - Java can't find a class definition for
the class java.util.prefs.Preferences. This class wasn't introduced
until Java 1.4, and there is no currently shipping Java 1.4
implementation for Mac OS X, just a developer preview. If you want to
require Java 1.4, then you need to specify it at runtime. I don't
think I'm allowed to say any more about this but you should be able to
get more help on the NDAed list.

If you're writing a Cocoa-Java application, you may want to
investigate NSUserDefaults instead.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >java.util.prefs.Preferences not found? (From: Sean Gilbertson <email@hidden>)

  • Prev by Date: Task Scheduling
  • Next by Date: Re: Task Scheduling
  • Previous by thread: java.util.prefs.Preferences not found?
  • Next by thread: Task Scheduling
  • Index(es):
    • Date
    • Thread