You can use the plugin system from eclipse/osgi without using SWT. This is a minimal standalone "Hello world" application. You extending the extension point "org.eclipse.core.runtime.applications" and can put whatever you like in the Application class. You can generate an exe as launcher using eclipse and using the RCP framework from it.
package test;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
Application.java
public class Application implements IApplication {
public Object start(IApplicationContext context) throws Exception {
System.out.println("Hello world!");
return IApplication.EXIT_OK;
}
public void stop() {
System.out.println("By by!");
}
}
plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="test.Application">
</run>
</application>
</extension>
</plugin>
MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Test
Bundle-SymbolicName: Test; singleton:=true
Bundle-Version: 1.0.0.qualifier
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6