wood burning stoves 2.0*
The moose likes Java in General and the fly likes Eclipse Plug-in and dependencies from other JARs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Eclipse Plug-in and dependencies from other JARs" Watch "Eclipse Plug-in and dependencies from other JARs" New topic
Author

Eclipse Plug-in and dependencies from other JARs

Marco Rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 30
Hi all,

I am developing an Eclipse plug-in extending an existing one which comes from Eclipse.

Inside I code I have added I need log4j and other classes that are inside other JAR built by me (but this is not a plug-in).

Using the Manifest Editor inside Eclipse I have added these two JARs in "Classpath" inside the "Runtime" tab and if I test my plug-in from inside Eclipse using "Run as Eclipse Application" everything is ok.

Problem comes up when I try to export my plug-in because I get some "import can not be resolved" for classes that are inside one of my JAR.

To add these two JARs to my final JAR plug-in I edited the "Runtime Information" inside tab "Build".
In the Manifest.MF tab I can see these two JARs added with:



In fact during export the second JAR is included, but I get "import can not be resolved" inside a log file (created during export).

Why? How can I solve?

Thanks
Marco
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Plug-in and dependencies from other JARs
 
Similar Threads
Junit on Eclipse
Eclipse Plug-in
Running a jar file
Plugin in the same eclipse instance
question regarding packaging utility jars