• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

J2EE - cannot find ejbObject  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
When a run my first client side program using J2EE from Sun. I get the below message.
Exception in thread "main" java.lang.NoClassDefFoundError: javax.ejb.EJBObject.
I have made sure to set the Java_Home, and J2EE_Home paths. Also, I have the J2EE SDK directory bin and J2SE bin directory set.
I have assumed that I do not have a classpath set up properly, and when I run the client program that it cannot find the class, which is a basic class. Does anyone know what I need to set?
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to the j2ee from sun also, but I think the message may imply that it cannot find the j2ee.jar file in your classpath environment. Are you running a client application or going thru the sun's j2ee tutorial?
craig j.
 
Charlie Newbie
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am running a client side program via the command prompt.
It is able to find the client program, but when it goes to run it, it can't find the class basic class file.
I have searched my drive for the class file, but it must be in a jar. I do not know which one or where it is at.
 
Charlie Newbie
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cj Jack
Thank you for the information. I reinstalled the J2ee package, and I saw the file j2ee.jar that you referred to. I went ahead and added it to my classpath, and yes, it worked.
Thank you,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!