Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358866

Summary: sdk install fails
Product: [Eclipse Project] Equinox Reporter: Martin Lippert <mlippert>
Component: LauncherAssignee: Project Inbox <equinox.launcher-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: christian.georgi, heiko.boettger, remy.suen
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug

Description Martin Lippert CLA 2011-09-26 06:58:26 EDT
When I try to install the Eclipse Platform SDK from this update site (http://download.eclipse.org/eclipse/updates/3.7), I get this error:

An error occurred while configuring the installed items
session context was:(profile=com.springsource.sts.ide, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null --> [R]toolingorg.eclipse.platform.sdk.ini.cocoa.macosx.x86_64 3.7.1.M20110909-1335, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.AddJVMArgumentAction).
An error occurred while processing the JVM argument.
Invalid format for byte argument: 768m .

Any idea what I can do?
Comment 1 Martin Lippert CLA 2011-09-26 08:29:35 EDT
It seems like this happens when I manually edited the ini file (eclipse.ini or sts.ini). When I do the install using a clean installation, it works (but deletes the ini file, which is also not indended, or is it?)
Comment 2 Christian Georgi CLA 2011-11-18 10:38:21 EST
I was able to reproduce and debug the issue.  A simple space character at the end of the -Xmx768m, i.e. "-Xmx768m " makes AddJVMArgumentAction.getBytePower(String) fail since the argument is not trimmed and thus the "m" is not detected correctly.
Comment 3 DJ Houghton CLA 2011-11-18 10:47:35 EST
Thanks Christian.

I think this has always been an issue. There is Bug 185399 which handles blank lines at the end of the file and whitespace in the middle, but I'm not sure it handles whitespace at the end of a line.
Comment 4 Eclipse Genie CLA 2019-10-11 01:52:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.