Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!