Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Is it possible to create a wrapper around org.eclipse.equinox.launcher.Main?
Is it possible to create a wrapper around org.eclipse.equinox.launcher.Main? [message #1690633] Mon, 30 March 2015 09:11 Go to next message
Al Bundy is currently offline Al BundyFriend
Messages: 27
Registered: November 2011
Junior Member
Because I want to replace some placeholders with envrionment variables, I'd like to create a wrapper around org.eclipse.equinox.launcher.Main.
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=463138)

According to the eclipse help I have to create a jar with a Main-Class attribute.

I've tried this but get this Exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/equinox/launcher/JNIBridge
Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.launcher.JNIBridge
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main" java.lang.NoSuchMethodError: run

In my main-method I've called only org.eclipse.equinox.launcher.Main.main(args)

[Updated on: Mon, 30 March 2015 09:12]

Report message to a moderator

Re: Is it possible to create a wrapper around org.eclipse.equinox.launcher.Main? [message #1690659 is a reply to message #1690633] Mon, 30 March 2015 12:56 Go to previous message
Al Bundy is currently offline Al BundyFriend
Messages: 27
Registered: November 2011
Junior Member
I've added a patch to the bug-report that would solve my problem.

The patch replaces each $VAR$-construct with the appropriate system-property or environment variable.
--> same behavior as in config.ini

If someone needs this feature too, please feel free to vote on the bug. Wink

[Updated on: Mon, 30 March 2015 12:57]

Report message to a moderator

Previous Topic:is it possible to use environment-variables in launcher-ini?
Next Topic:java deserialization and RCP product
Goto Forum:
  


Current Time: Fri Apr 26 07:33:16 GMT 2024

Powered by FUDForum. Page generated in 0.03058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top