how to solve java.lang.NoClassDefFoundError: javax/ejb/EJBObject?

    Question by:
    On

    Topics:

    Hi all,
    i am new to JDeveloper and J2ee.
    i opened an application in Jdeveloper 11, and complie it, it is fine. run it, i got error java.lang.NoClassDefFoundError: javax/ejb/EJBObject

    what library i missing?

    thanks a lot
    Loading libraries
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBObject
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	at au.com.ords.commission.client.CommissionMain.<init>(CommissionMain.java:83)
    	at au.com.ords.commission.client.CommissionMain.main(CommissionMain.java:992)
    Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBObject
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	... 14 more
    Library directory not found.Process exited with exit code 1.
    
                                    
    1:
    2:
    3:
    4:
    5:
    6:
    7:
    8:
    9:
    10:
    11:
    12:
    13:
    14:
    15:
    16:
    17:
    18:
    19:
    20:
    21:
    22:
    23:
    24:
    25:
    26:
    

    Select allOpen in new window

    Good Question?
    0
     

    ?

    The member who asked this question verified this comment provided the solution that solved their problem.

    Accepted Solution on 2010-06-22 at 19:30:43ID: 33051936

    When testing it is easier to just run Main

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    gurpsbassi

    205

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Programming-Other

    mrcoffee365

    1,048

    Solutions

    Expert in:

    • JSP
    • Java
    • Web Development-Other
    • Java EE
    • Apache Web Server

    ozo

    13,788

    Solutions

    Expert in:

    • Perl
    • Math / Science
    • Regular Expressions
    • Shell Scripting
    • Algorithms

    BigRat

    2,296

    Solutions

    Expert in:

    • Math / Science
    • XML
    • ASP
    • Apache Web Server
    • Delphi

    btan

    11

    Articles

    3,033

    Solutions

    Expert in:

    • Security-Other
    • Anti-Virus Apps
    • Digital Forensics
    • Encryption
    • Network Security

    girionis

    2,504

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Java App Servers
    • Android

    krakatoa

    2

    Articles

    576

    Solutions

    Expert in:

    • Java
    • Java EE
    • Programming Languages-Other
    • Programming-Other

    awking00

    2,136

    Solutions

    Expert in:

    • Oracle Database
    • Query Syntax
    • Databases-Other
    • MS SQL Server
    • Java

    marlon_rnr

    8

    Articles

    RELATED TOPICS view all topics

    1. Java
      (98,167)
    2. JSP
      (15,370)
    3. Java App Servers
      (7,000)
    4. Programming-Other
      (51,630)
    5. Web Servers
      (32,323)
    6. Editors IDEs
      (25,097)
    7. Programming Languages-Other
      (19,578)
    8. JavaScript
      (117,364)
    9. Web Languages/Standards-Other
      (39,427)
    10. Web Applications
      (14,215)