Skip to content

Tutorial seems out of date #266

@steinybot

Description

@steinybot

I am trying to go through the tutorial and I have encountered a couple of issues.

I am using:

Eclipse IDE for RCP and RAP Developers (includes Incubating components)

Version: 2025-09 (4.37.0)
Build id: 20250905-1456

With:

  Bndtools	7.1.0.REL-202411251545-g47e504d	bndtools.main.feature.feature.group	Bndtools
  Bndtools m2e	7.1.0.REL-202411251545-g47e504d	bndtools.m2e.feature.feature.group	Bndtools
  Bndtools PDE	7.1.0.REL-202411251545-g47e504d	bndtools.pde.feature.feature.group	Bndtools

The first screenshot of the cnf directory after having created the workspace does not match up:

Image

The templates for a new Bnd OSGi Project are missing quite a few:

Image

This step in the wizard didn't show:

5: In the following page you will see an overview of the folders that will be created for this new project.

It states:

However, the bundle is currently empty, because we have not defined any Java packages to include in the bundle. This is an important difference of Bndtools with respect to other tools: bundles are always empty until we explicitly add some content. You can verify this by double-clicking the bundle file and viewing its contents: it will only have a META-INF/MANIFEST.MF entry.

But that does not match what I see. For me it includes the Greeting.class even with an empty bnd.bnd file:

Image

When I double click the bnd.bnd file it opens the source. I have to right-click and select Bnd Bundle Editor to get the editor UI. Not sure why, I'm sure this never used to be the case but I have updated Eclipse a couple of times recently.

Exporting the org.example.api package will generate the package-info.java file (different naming to the tutorial which calls it packageinfo.java which I guess is just because I chose Java 21).

The package-info.java will contain errors:

Image

I'm guessing this is because the tutorial told us to create an empty project instead of an API project. OSGi R8 is present in the cnf/ext/build.mvn file though.

I haven't gotten any further because the create implementation project step says to choose the template Component Development which doesn't exist.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions