Ok, I understand.
I that case create a project (or a sub bundle). Make sure that you add to the Private Packages all the classes that you need. You can check the Contents tab that you have only imports from the JVM. (Conditional Package might help here, see
http://enroute.osgi.org/tutorial_wrap/210-dependencies.html)
Then add `Main-Class: <your main class with static void main(String[] args) method>` to the bnd file.
This bundle is now an executable JAR. You can run it with `java -jar generated/com.example.foo.jar`
com.example.foo.Main:
package com.example.foo;
public class Main {
public static void main(String args[]) {
System.out.println(“Hello World”);
}
}
bnd.bnd:
Main-Class: com.example.foo.Main
Conditional-Package: \
!javax.*, \
!org.omg.*, \
!org.w3c.*, \
!org.sax.*, \
*
-buildpath: \
com.example.other.project, \
com.otext.bar
Kind regards,
Peter Kriens