Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Multivalue VM arguments in config.ini(different handling in Linux and Windows)
Multivalue VM arguments in config.ini [message #535056] Fri, 21 May 2010 08:04 Go to next message
Roland Brand is currently offline Roland BrandFriend
Messages: 42
Registered: July 2009
Member
Hi,

I am building an RCP based product for Windows, Linux and MacOS X. In the product defnition I added (among others) the VM argument

-Dorg.eclipse.emf.common.util.URI.archiveSchemes=archive zip jar

When building the product, this argument is added to the generated config.ini as

-Dorg.eclipse.emf.common.util.URI.archiveSchemes=archive
zip
jar

This works fine for Windows and MacOS X, but in Linux I get the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: zip
Caused by: java.lang.ClassNotFoundException: zip
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: zip. Program will exit.

The launcher plugins used are:
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.20 0.v20090519

How could I solve this problem? I did not manage to create a working .ini-File with this multi-valued argument.

Roland

Re: Multivalue VM arguments in config.ini [message #535191 is a reply to message #535056] Fri, 21 May 2010 14:05 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
The config.ini is expected a single argument per line so all the values should be contained on one line like this:

-Dorg.eclipse.emf.common.util.URI.archiveSchemes=archive zip jar

It sounds like the product builder is messing up. Can you try putting quotes around the values in your product definition?

-Dorg.eclipse.emf.common.util.URI.archiveSchemes="archive zip jar"
Re: Multivalue VM arguments in config.ini [message #535223 is a reply to message #535191] Fri, 21 May 2010 16:10 Go to previous messageGo to next message
Urs Breu is currently offline Urs BreuFriend
Messages: 12
Registered: October 2009
Location: Switzerland
Junior Member
If we put quotes around the vmarg PDE ends up generating this:

-Dorg.eclipse.emf.common.util.URI.archiveSchemes="archive
zip
jar
bcz"

The application will start (tested on mac + win), but the archiveScheme is not set correctly

[Updated on: Fri, 21 May 2010 16:10]

Report message to a moderator

Re: Multivalue VM arguments in config.ini [message #535225 is a reply to message #535223] Fri, 21 May 2010 16:17 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
You should open a bug against PDE-UI for this.
Re: Multivalue VM arguments in config.ini [message #535230 is a reply to message #535225] Fri, 21 May 2010 16:36 Go to previous message
Urs Breu is currently offline Urs BreuFriend
Messages: 12
Registered: October 2009
Location: Switzerland
Junior Member
Ok, thanks for your help!

Bug opened:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313940
Previous Topic:"Unresolved compilation problem" upon starting a bundle
Next Topic:Signature verification issues with pack200
Goto Forum:
  


Current Time: Thu Apr 25 14:55:23 GMT 2024

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

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

Back to the top