1

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


asked Nov 22, 2011 at 16:27
0

2 Answers 2

2

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.

answered Nov 22, 2011 at 17:27
Sign up to request clarification or add additional context in comments.

Comments

1

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

answered Nov 22, 2011 at 17:56

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.