• 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
Works in eclipse but not in a jar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Works in eclipse but not in a jar


  • Subject: Works in eclipse but not in a jar
  • From: Calven Eggert <email@hidden>
  • Date: Fri, 27 Nov 2009 14:38:54 -0500

Hi all,

In my final attempts to move my Tiger WO stuff to Snow Leopard I have one last visible hurdle.  I have a java application that does some batch stuff to a database and this runs via crontab on a daily basis.  I've created my new java application in eclipse and linked in all the libraries and it runs fine, although I'm still using the deprecated EOModelGroup.addModelWithPath call.

When I create my jar, via Export Runnable JAR file, and run it from the terminal, it barfs on the call EOModelGroup.defaultGroup() with:

java.lang.IllegalArgumentException: Attempt to insert null into an com.webobjects.foundation.NSMutableArray.
	at com.webobjects.foundation.NSMutableArray.addObject(NSMutableArray.java:239)
	at com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:700)
	at com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)
	at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
	at com.blah.blah.blah<init>(DailyImport.java:748)
	at com.blah.blah.blah.main(DailyImport.java:127)

Can someone please explain to me how I should properly create the JAR file? (I'm sure you'll have a note about the deprecated call I'm using above.)

Thank you. :-)

Calven


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Works in eclipse but not in a jar
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: eclipse version
  • Next by Date: Re: Works in eclipse but not in a jar
  • Previous by thread: Re: eclipse version
  • Next by thread: Re: Works in eclipse but not in a jar
  • Index(es):
    • Date
    • Thread