Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem with bundle org.eclipse.swt.win32.win32.x86_64 in config.ini (Parser of config.ini file pass bundle name org.eclipse.swt.win32.win32.x86_64)
Problem with bundle org.eclipse.swt.win32.win32.x86_64 in config.ini [message #1005007] Thu, 24 January 2013 09:59 Go to next message
Alex Say is currently offline Alex SayFriend
Messages: 6
Registered: September 2009
Junior Member
Hello.
My application use custom config.ini file. I use Windows and Java 1.7, but I want to migrate to Java 1.7 x64 and Eclipse x64. But I cant do this because of after replacing bundle name "org.eclipse.swt.win32.win32.x86" to "org.eclipse.swt.win32.win32.x86_64" application not running. My config.ini for Eclipse 4.2.1 x64 below:

#Product Runtime Configuration File

osgi.splashPath=platform:/base/
eclipse.product=my.rpc.armshn.product
osgi.startLevel=20
osgi.clean=true
osgi.configuration.cascaded=false
osgi.bundles.defaultStartLevel=4
osgi.framework=../../plugins/org.eclipse.osgi_3.8.1.v20120830-144521.jar
osgi.bundles=my.eventmanager@5:start,\
my.launcher@6:start,\
my.resourcemanager@7:start,\
my.platform@8:start,\
my.platform.config,\
my.rpc.protocol@9:start,\
my.rpc.archivator@10:start,\
my.communicator@11:start,\
my.mediatcp@12:start,\
my.sound,\
my.resource,\
my.base,\
my.base.management,\
my.base.monitoring,\
my.base.scb.shared,\
my.base.polygon,\
my.base.occurence.shared,\
my.base.rkpm,\
my.base.rkpm.shared,\
my.base.scb,\
my.base.occurence,\
my.ui.workbench,\
my.rpc.ui.pictures,\
my.rpc.ui.register.commands,\
my.rpc.armshn,\
my.base.occurence.tasks@13:start,\
my.base.management.tasks@14:start,\
my.base.management.provider@14:start,\
my.base.monitoring.provider@14:start,\
my.base.polygon.provider@14:start,\
my.base.scb.provider@14:start,\
my.base.rkpm.provider@15:start,\
my.picturemanager@16:start,\
my.rpc.ui.tu@16:start,\
my.rpc.ui.blackbox@16:start,\
my.rpc.ui.dgnrkp@16:start,\
my.rpc.ui.dgnscb@16:start,\
my.rpc.ui.calibration@17:start,\
my.rpc.ui.measurement@17:start,\
my.rpc.ui.occurence@17:start,\
my.rpc.ui.register@17:start,\
my.workbench.tasks@17:start,\
my.soundmanager@17:start,\
org.eclipse.e4.core.services,\
org.eclipse.emf.ecore.xmi,\
org.eclipse.equinox.app,\
org.eclipse.e4.ui.widgets,\
com.ibm.icu,\
org.apache.batik.css,\
org.eclipse.e4.core.di.extensions,\
org.eclipse.swt,\
org.eclipse.equinox.preferences,\
org.w3c.dom.smil,\
org.eclipse.core.commands,\
org.eclipse.core.databinding,\
org.eclipse.e4.ui.css.swt,\
org.eclipse.core.databinding.observable,\
org.eclipse.emf.ecore,\
org.eclipse.equinox.ds@1:start,\
org.eclipse.equinox.event,\
javax.inject,\
javax.xml,\
org.apache.batik.util.gui,\
org.eclipse.equinox.registry,\
org.eclipse.e4.core.commands,\
org.eclipse.e4.core.di,\
org.eclipse.core.runtime@start,\
org.eclipse.e4.ui.workbench3,\
org.eclipse.e4.ui.css.swt.theme,\
javax.annotation,\
org.eclipse.e4.ui.workbench.swt,\
org.apache.batik.util,\
org.eclipse.equinox.util,\
org.eclipse.emf.ecore.change,\
org.eclipse.e4.ui.workbench.renderers.swt,\
org.eclipse.e4.ui.bindings,\
org.eclipse.jface.databinding,\
org.eclipse.core.expressions,\
org.eclipse.e4.ui.di,\
org.eclipse.core.databinding.property,\
org.eclipse.jface,\
org.eclipse.help,\
org.eclipse.core.contenttype,\
org.eclipse.core.jobs,\
org.w3c.css.sac,\
org.w3c.dom.svg,\
org.eclipse.emf.common,\
org.eclipse.e4.ui.css.core,\
org.eclipse.ui.workbench,\
org.eclipse.equinox.common@2:start,\
org.eclipse.ui,\
org.eclipse.e4.ui.workbench,\
org.eclipse.osgi.services,\
org.eclipse.core.runtime.compatibility.registry,\
org.eclipse.e4.ui.model.workbench,\
org.eclipse.e4.core.contexts,\
org.eclipse.e4.ui.services,\
org.eclipse.swt.win32.win32.x86_64


I added .log file of application launching.

I think this is a problem in config.ini parser. I try use x64 on Eclipse 3.5, 3.7 and 4.2. But result negative on all eclipse platforms.
Help me please! Thanks!
Re: Problem with bundle org.eclipse.swt.win32.win32.x86_64 in config.ini [message #1691836 is a reply to message #1005007] Fri, 10 April 2015 06:32 Go to previous message
Alex Say is currently offline Alex SayFriend
Messages: 6
Registered: September 2009
Junior Member
After more than two years I found mistake in Eclipse pde plugin. Mistake in class org.eclipse.pde.internal.core.TargetPlatformHelper. Method public static String stripPathInformation(String osgiBundles)

104 public static String stripPathInformation(String osgiBundles) {
105		StringBuffer result = new StringBuffer();
106		StringTokenizer tokenizer = new StringTokenizer(osgiBundles, ","); //$NON-NLS-1$
107		while (tokenizer.hasMoreElements()) {
108			String token = tokenizer.nextToken();
109			token = token.replaceAll("\\\\:|/:", ":"); //$NON-NLS-1$ //$NON-NLS-2$
110
111			// read up until the first @, if there
112			int atIndex = token.indexOf('@');
113			String bundle = atIndex > 0 ? token.substring(0, atIndex) : token;
114			bundle = bundle.trim();
115
116			// strip [reference:][platform:][file:] prefixes if any
117			if (bundle.startsWith(REFERENCE_PREFIX) && bundle.length() > REFERENCE_PREFIX.length())
118				bundle = bundle.substring(REFERENCE_PREFIX.length());
119			if (bundle.startsWith(PLATFORM_PREFIX) && bundle.length() > PLATFORM_PREFIX.length())
120				bundle = bundle.substring(PLATFORM_PREFIX.length());
121			if (bundle.startsWith(FILE_URL_PREFIX) && bundle.length() > FILE_URL_PREFIX.length())
122				bundle = bundle.substring(FILE_URL_PREFIX.length());
123
124			// if the path is relative, the last segment is the bundle symbolic name
125			// Otherwise, we need to retrieve the bundle symbolic name ourselves
126			IPath path = new Path(bundle);
127			String id = null;
128			if (path.isAbsolute()) {
129				id = getSymbolicName(bundle);
130			}
131			if (id == null) {
132				id = path.lastSegment();
133			}
134			if (id != null) {
135				int underscoreIndex = id.indexOf('_');
136				if (underscoreIndex >= 0) {
137					id = id.substring(0, underscoreIndex);
138				}
139				// TODO If a relative path is used with a non .jar extension and does not have a version, we have no way of recognizing what the symbolic name is (bug 355890) 
140				if (id.endsWith(JAR_EXTENSION)) {
141					id = id.substring(0, id.length() - 4);
142				}
143			}
144			if (result.length() > 0)
145				result.append(","); //$NON-NLS-1$
146			result.append(id != null ? id : bundle);
147			if (atIndex > -1)
148				result.append(token.substring(atIndex).trim());
149		}
150		return result.toString();
151	}


Lines from 135 to 138 breakes name "org.eclipse.swt.win32.win32.x86_64" to "org.eclipse.swt.win32.win32.x86".
This bug is present in 4.4.2 version too(((
Bug 464293..
Previous Topic:error HTML with report BIRT
Next Topic:How to handle (ResolveBinding) Enum inside class ?
Goto Forum:
  


Current Time: Sun Aug 30 03:37:45 GMT 2015

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

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