Hi,

Once again, /Library/Java/Extensions (and that goes double for / System/Library/Java/Extensions) are for _extension_ to the core Java API. Like JDBC drivers. These are _terrible_ places to throw random jars. Doing so can (and I suspect you found out) cause class loader issues.

For WebObjects specific stuff, you can put it in /Library/WebObjects/ Extensions. I am not sure if that is the place for WOUnit. Otherwise, I usually build it into a framework and include that.

Chuck


On Sep 25, 2006, at 12:43 PM, John Larson wrote:

Thanks Christian,

Right before I got your e-mail I found that I really wasn't keeping the wounittest jar in the right place. I had it in /system/library/ java/extensions folder with all the other extensions. I moved it into eclipse/plug-ins and it worked. I have a feeling that I really am not keeping it in the right place there either. Where should I keep it to be "like everyone else?" It works now, but I feel like that's not right since it's really not an eclipse plug-in.

John

On Sep 25, 2006, at 2:04 PM, Christian Pekeler wrote:

Try these:

Add
System.out.println(NSArray.componentsSeparatedByString (System.getProperty("java.class.path"), ":").componentsJoinedByString("\n")); to one of your tests and run it. See if the output includes JavaEOControl.framework.

Double check the Eclipse Properties of your project. See if the Java Build Path/Libraries include JavaEOControl.framework.

Delete the corresponding run-configuration: Select menu Run/ Run..., in the tree view expand JUnit and select your test (or simply all tests), and right-click delete it/them.


Christian



On Sep 25, 2006, at 09:43, John Larson wrote:
Um. Undoubtedly something stupid, but I can't get any extension of EOFTest to run. I keep getting NoClassDefFoundError: com/ webobjects/eocontrol/EOEditingContext. I'm pretty sure that I have my classpath set right since the project runs normally when not testing. If I don't extend EOFTest, then tests I write work fine - except there is no eo support - so I think the JUnit part is set up fine. Rather than installing the JAR, I also tried adding the source and compiling it and get the same error.

java.lang.NoClassDefFoundError: com/webobjects/eocontrol/ EOEditingContext


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to