Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to register a new CharsetProvider inside an Equinox based software
How to register a new CharsetProvider inside an Equinox based software [message #713834] Tue, 09 August 2011 06:57 Go to next message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi,
I have to register an new Charset for document processing in a RCP client.

At Google, I found only one mail thread (
http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg06398.html) but the
proposed solutions, doesn't work.
Charset.availableCharsets() dont gives me my registerd Charsets.

I think I do it not in the correct way, at the point of
-Dorg.osgi.framework.system.packages.extra=[list of versioned packages
"exported" by my 3rd party JARs]
-Dosgi.frameworkClassPath=org.eclipse.osgi_3.5.0.v20090520.jar,[my
problematic 3rd party JARs]

:/

Has somebody an good example, how can I solve this problem?

At the moment I use Eclipse 3.6 but changing to 3.7, will also possible.

Greetings

Heiko
Re: How to register a new CharsetProvider inside an Equinox based software [message #713965 is a reply to message #713834] Tue, 09 August 2011 13:53 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
The problem is the VM expects to be able to load the new charsets from the boot class path. You are trying to place them on the framework's class path which the VM still does not have access to. The only way to do this is by using some VM specific options to append the jar to the boot class path. (i.e. -Xbootclasspath/a:yourstuff.jar)

Tom
Re: How to register a new CharsetProvider inside an Equinox based software [message #714257 is a reply to message #713965] Wed, 10 August 2011 06:59 Go to previous message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi Tom,
thanks a lot, with this option it works well.

Greetings
Heiko


Am 09.08.2011 15:53, schrieb Thomas Watson:
> The problem is the VM expects to be able to load the new charsets from
> the boot class path. You are trying to place them on the framework's
> class path which the VM still does not have access to. The only way to
> do this is by using some VM specific options to append the jar to the
> boot class path. (i.e. -Xbootclasspath/a:yourstuff.jar)
>
> Tom
Previous Topic:(no subject)
Next Topic:loading higher version bundle when multiple versions are present
Goto Forum:
  


Current Time: Wed Sep 25 17:53:51 GMT 2024

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

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

Back to the top