Stephen Baier
Stephen Baier

Reputation: 53

Eclipse4 RCP Standalone Product : Class Not Found Expection

I have created two plug-in projects. The first declares my views, I'll call this my component project. The second declares my product, application and perspectives, incorporating various views from my component project, I'll call this my product project. Launching from Eclipse everything works fine, all views display properly, etc. But when I export my product using the Eclipse Product export wizard and launch as a stand-alone application, I get Class Not Found Exceptions for the views declared in my component project.

Doing a little digging I noticed that none of the classes were actually being packaged in the exported component project (plug-in) jar file. I tried all sorts of techniques to fix this issue, but to no avail.

In short: How do I get the plug-in jar file to include java classes declared within the plug-in (i.e. views and other implementation files)?

(Eclipse 4)

Upvotes: 1

Views: 774

Answers (1)

Sam Su
Sam Su

Reputation: 6832

At first clean and re-build your projects.
Most of those problems caused by plug-in build.Check your build.properties file.
A standard build.properties file may looks like:

source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
           META-INF/,\
           .,\
           icons/

Be sure not to miss any imported jar files. You can get more info from link1 and link2

Upvotes: 3

Related Questions