• 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: What does NSBundle.mainBundle() need?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does NSBundle.mainBundle() need?


  • Subject: Re: What does NSBundle.mainBundle() need?
  • From: Kaj Hejer <email@hidden>
  • Date: Mon, 10 Nov 2003 17:55:46 +0100

At 17:15 +0100 10-11-03, Erlandsson Martin wrote:
Hi List.

I am trying to create an NSBundle with the static creation method
mainBundle(). It works fine in my IDE (JBuilder), but when I try to run
it through ANT, I get an "ExceptionInInitializerError", caused by a null
reference in a method called "LoadUserAndBundleProperties" in NSBundle.

I have tried to set up all system properties and paths the same way in
both environments, but I just can't find what is missing when I run
through ANT. What is the absolute minimum of data needed by NSBundle to
create an instance? Any other thoughts?

/Martin


--------- Details: -----------------------

The following simple unit test passes when run in JBuilder, but causes
an error when I run it with ANT.



(TestGeneralTests.java:44) NSBundle bundle = NSBundle.mainBundle(); (TestGeneralTests.java:45) assertNotNull(bundle);


Hi!

Try to add the following line:

WOApplication.primeApplication(
      NSBundle.mainBundle().bundlePath(), "Application");


-Kaj :) _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: What does NSBundle.mainBundle() need?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Filtering an array of EO objects (next hurdle)
  • Next by Date: Re: index of WODisplayGroup.displayedObjects() array
  • Previous by thread: What does NSBundle.mainBundle() need?
  • Next by thread: Re: What does NSBundle.mainBundle() need?
  • Index(es):
    • Date
    • Thread