• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating a JavaBeans jar file - Please Help!

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to run an application that depends on JavaBeans from within CrEme, a JVM for PocketPC that runs a subset of JDK 1.3.1. However JavaBeans is not supported, I'm getting an error:
'java.lang.noClassDefFoundError: java/beans/beancontext/BeanContextChild'

So I'm trying to package JavaBeans classes from JDK 1.3.1 into a jar file for use with CrEme. I've created a jar file called java.jar which includes a beans folder, with class files and a beancontext folder, which in turn contains class files including BeanContextChild.class. So the hierarchy for this class file within the jar file is beans/beancontext/BeanContextChild. I've included the jar file in my classpath. But I'm still getting the error. I was wondering if I'm packaging the class files and folders correctly so that they can be found by the application? Any help greatly appreciated!
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jane make sure you have the corresponding path structure present in the ejbjar.xml inside the META_INF folder..
reply
    Bookmark Topic Watch Topic
  • New Topic