Export RCP Trouble with Class Loading Error

When i want to make some RCP Application, The RCP is working at developing level but it is quite some headache when you do the production as product.

There is the tips how you can avoid some pain in the ass
1. Avoid Class Loading problem
make sure that you have good Product Configuration and make sure that in build.properties you have the line like this

source.. = src/
output.. = bin/

bin.includes = plugin.xml,\
               plugin.properties,\
               META-INF/,\
               icons/,\
              .

the last line make your live easier:)

2. Hibernate Integration Problem
There are some tips from Hibernate Gurus but I summarize this way

In the MANIFEST.MF file of the Hibernate plugin (which NEEDS the buddy loading), such as org.hibernate.eclipse, add a line:

Eclipse-BuddyPolicy: registered

and in the MANIFEST.MF file of your plugin project or RCP project, add the line:

Eclipse-RegisterBuddy:org.hibernate.eclipse

Finally, if you are using HibernateUtil as your main entry point into Hibernate, then in your plugin start method add the line:

Class.forName("myPlugin.HibernateUtil"); //full class name should go here

that’s all folks and have a nice weekend:)

wass wr wb,
SAdr LM

Leave a Reply