Community
Participate
Working Groups
Build ID: I20090522-1710 Steps To Reproduce: 1. Do a fresh install of Galileo rc2 2. Edit eclipse.ini and add: -Dmy.home=xxx yyy to the vmargs 3. launch eclipse and create a new workspace 4. Select the Run Configurations... menu item in the Run menu 5. Create a new Eclipse Application launch configuration 6. Click the Run button to get the error. More information: It happens because the vmargs are copied into the launch config vm arguments but are not quoted properly. Properties containing spaces set in eclipse.ini are handled properly by eclipse so if the launch config is to be correct, they will have to be handled there too. Quoting the arguments in eclipse.ini has no effect. Changing the property in the launch configuration to either: -Dmy.home="xxx yyy" "-Dmy.home=xxx yyy" seems to fix the problem so maybe quoting all imported vm arguments would fix this bug. This is the stack trace when trying to launch an eclipse application with -Dmy.home=xxx yyy in the vmargs. java.lang.NoClassDefFoundError: yyy Caused by: java.lang.ClassNotFoundException: yyy at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) 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) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Exception in thread "main"
Seems like a good 3.5.1 fix. Workaround is to add the quotes manually.
Ankur, this could be a slightly larger item to work on.
Will do. Please assign it to me.
ping, 3.5.1 is coming up
Created attachment 143709 [details] Patch The import vm wizard check for the space inside a vm. if found, enclose the arg in quotes.
Curtis, please review the patch. This one is for 3.5.1 so it need to go soon.
I like the fix and it works in linux. I will wait until Monday to put the fix in since M1 hasn't been declared yet.
Fixed in HEAD and 3.5.1 maintenance. Thanks Ankur.
Verified.