The problem is this:
I have a third-party Eclipse plugin installed and running
The aforementioned Eclipse plugin provides a sorting “extension point” - the source for a class that I can extend / rewrite and replace in the plugin library directory (I’m not saying that this is a great idea, but the need forces us to do something that we are not proud of - internal development has its own quirks)
The idea here is to cover any such change to the external JAR (created by us) so that any code change does not require a restart of Eclipse to “update” the point-to-point class during development.
In the end, the plugin / package will be created and placed as a dependency on the source plugin - so, as you know, work on this plugin will work.
Question: can I somehow add to the appearance of the JAR file the appearance for debugging / starting the Eclipse application?
Normally adding a JAR to the classpath tab will work for normal debugging / launching of Java applications. However, the Eclipse application does not have this tab.
So far, the efforts (failed, possibly due to some kind of stupid syntax error or something else) included:
- Adding a JAR as a dependency on the
Bundle-ClassPath:
plugin as C:\test.jar
- Adding JAR to system CLASSPATH variable
None of this mattered — the code at the “extension point” that refers to the class in the JAR file, failure — an exception that boils down to:
Caused by: java.lang.ClassNotFoundException: test.Test at org.eclipse.osgi.internal.loader.BundleLoader. findClassInternal(BundleLoader.java:506)
Any pointer / help / criticism is appreciated.
Update
Obviously, placing the JAR in the plugin's lib directory and updating the MANIFEST file does not work (not that it helped me, since such a solution will require an “update”, which I try to avoid first), so I have to do something fundamentally wrong.
Does this make any sense or have I missed something in one of these attempts?
source share