i want to use a jar (plugin for OSGI platform) in my java application (simple console application).
I try to use it, in standard way, including all jars in my classpath e instanziate object and then call method A, but at same point Method A call a instruction that involve Platform:
Platform.getBundle("com.example.resource").getResource("icons/icon.png")
as expected it give me a Null pointer Exception.
i try different solution but nothing work (i'm not very expert of osgi world). There is a simple way to initialized all bundle and plugins, so i can call method A?
i try to create org.eclipse.equinox.launcher.Main instance calling run with -initialize, then call method A but don't work.