Re: What does NSBundle.mainBundle() need?
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.