Hi Ron,

On 12/04/2012, at 08:04, Ron X wrote:

> please tell me - how you start app with woinject?
> i can't do that!
> 

Your Application class should look like this:

package com.ronx;
 
import com.woinject.InjectableApplication;
import com.woinject.WOInject;
 
public class Application extends InjectableApplication {
    public static void main(String[] args) {
        WOInject.init("com.ronx.Application", args);
    }
    ...
}

> everytime i have 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/ronx/Application
> Caused by: java.lang.ClassNotFoundException: com.ronx.Application
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 
> or if i comment         ERXApplication.main(argv, Application.class);
> 

You should not start your application with the ERXApplication class when using 
WOInject.

Cheers,

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

This email sent to arch...@mail-archive.com

Reply via email to