tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Exception on http://openejb.apache.org/hello-world.html
Date Wed, 18 Jan 2012 10:29:13 GMT
hi,

is it a type the space between the . and the class name?

shouldnt it be:

java -cp e:\openejb-3.1.4\lib\openejb-**client-3.1.4.jar:e:\openejb-3.
1.4\lib\javaee-api-5.0-3.jar:. org.acme.HelloClient

- Romain


2012/1/18 Gurminderpal <gurminderpal.singh@bayatree.com>

> Hello there,
>                    I have gone through your article on OpenEJB standalone
> server. Until "Run the Client" Step everything worked well.
>                  When i run the exception i get following exception.
>
>    E:\projects>java -cp e:\openejb-3.1.4\lib\openejb-**
> client-3.1.4.jar:e:\openejb-3.
> 1.4\lib\javaee-api-5.0-3.jar: .org.acme.HelloClient
>
> Exception in thread "main" java.lang.**NoClassDefFoundError:
> /org/acme/HelloClient
>
> Caused by: java.lang.**ClassNotFoundException: .org.acme.HelloClient
>        at java.net.URLClassLoader$1.run(**Unknown Source)
>        at java.security.**AccessController.doPrivileged(**Native Method)
>        at java.net.URLClassLoader.**findClass(Unknown Source)
>        at java.lang.ClassLoader.**loadClass(Unknown Source)
>        at sun.misc.Launcher$**AppClassLoader.loadClass(**Unknown Source)
>        at java.lang.ClassLoader.**loadClass(Unknown Source)
> Could not find the main class: .org.acme.HelloClient.  Program will exit.
>
>
> I have HelloClient.class in org.acme package. Please find log file
> attached..
>
> Regards,
> Gurminderpal
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message