Leander Kervin
Leander Kervin

Reputation: 11

How can I start developing eclipse plugin project from the scratch?

I need guidance on developing an Eclipse plugin project, as I am unsure how and where to begin. If you know of any articles or resources that can help with Eclipse plugin development, please share them.

Additionally, I would like to understand what an OSGi bundle is. Does every Eclipse plugin project include an OSGi bundle by default? Is it mandatory to have an OSGi bundle for Eclipse plugin development? If it is required, how can I download and integrate it into my project?

I attempted to develop an Eclipse plugin project using Java 17. However, when I ran the application as an Eclipse application, it prompted me to upgrade to Java 21. To address this, I installed Java 21 from Adoptium. After updating the Java version, I began encountering warnings and errors like the following:

WARNING: Using incubator modules: jdk.incubator.vector SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.

Description Resource Path Location Type 'source.lib/httpclient-5.4.1.jar' build entry is missing build.properties /QuestionAnswerPlugin line 1 Plug-in Problem 'source.lib/httpcore-5.3.1.jar' build entry is missing build.properties /QuestionAnswerPlugin line 1 Plug-in Problem

These errors appear even though I added the httpclient-5.4.1.jar, httpcore-5.3.1.jar, slf4j-api.jar, and slf4j-simple.jar to the classpath and configured them.

Upvotes: 1

Views: 47

Answers (1)

Philipp
Philipp

Reputation: 420

To answer both your questions:

1. How to start with plugin development:

There is a decent tutorial for an hello world application inside eclipse: Help -> Cheat Sheets -> Plugin Development. To start I would also download the plugin ide, just use the normal installer from the website and select Eclipse IDE for Eclipse Committers.

2. Missing dependencies

Adding these dependencies to your classpath is not enough (propablu not event needed in this case), you have to add the to you plugin.xml. Open the Manifest.MF and have a look at the Require-Bundle are the dependencies added there? You can also use the Dependencies tab in eclipse.

Upvotes: 1

Related Questions