Bouanani Meher
Bouanani Meher

Reputation: 107

Convert Java Project into Eclipse plugin?

I have a Java Project inside eclipse that contains a liste of an external jars and i would like to export this project as an eclipse plugin , i tried a lot of solution but i either have this error :


The type javax.persistence.CascadeType cannot be resolved. It is indirectly referenced from required .class files


or i get another error that telling me that he do not recongnise any of external jars


Upvotes: 1

Views: 3871

Answers (2)

Paul Webster
Paul Webster

Reputation: 10654

OSGi bundles (eclipse plugins are bundles) can only see their own code and other bundles. They can't see random 3rd party jars unless they're included (license permitting) within that bundle, or the 3rd party jars are turned into OSGi bundles themselves (the preferred method).

"i tried a lot of solution" doesn't help. Please update your question with the configuration you started with and 1 or 2 solutions (complete steps) you've already tried, like the MANIFEST.MF files that they generated, etc

Upvotes: 1

Alexey Romanov
Alexey Romanov

Reputation: 170919

If it's actually a Java project, first you need to actually convert it to an Eclipse plug-in project ("Configure > Convert to plugin project" in context menu for your project). Then follow advice in http://www.vogella.de/articles/EclipseJarToPlugin/article.html to fix dependency problem.

Upvotes: 2

Related Questions