Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » rcp for multi-user,platform.getConfiguration didn't find config.ini
rcp for multi-user,platform.getConfiguration didn't find config.ini [message #895700] Sun, 15 July 2012 05:36 Go to next message
neal zhang is currently offline neal zhangFriend
Messages: 45
Registered: July 2012
Member
hi all,i develop a rcp applicaton.but customer ask to support multi-user,so i add
"osgi.configuration.area=@user.home/workspace/configuration" in "program"/configuration/config.ini.
but i add another function,automatically change language,so add some codes
"Platform.getConfigurationLocation().getURL().getFile() + System.getProperty("file.separator") + "config.ini";"
setProperty("osgi,nl",xxx).

Platform.getConfigurationLocation()will show a exception which didn't find configuration "config.ini",reason i set "osgi.configuration.area=@user.home/workspace/configuration",so platform find "config.ini" in "user.home/workspace/configuration".
how i implement the two functions at the same time.

i geuss that is a bug in eclipse(version 3.6).but i am not assue,i hope someone can help me.
Re: rcp for multi-user,platform.getConfiguration didn't find config.ini [message #895701 is a reply to message #895700] Sun, 15 July 2012 05:51 Go to previous messageGo to next message
neal zhang is currently offline neal zhangFriend
Messages: 45
Registered: July 2012
Member
when i build rcp program,at first "%program%/configuration"have "config.ini" file, how can i set somethings ,"user.home/workspace/configuration"folder can create a "config.ini"(i try to copy "%program/configuraton/config.ini%" to "user.home/workspace/configuration" folder,it is work)
Re: rcp for multi-user,platform.getConfiguration didn't find config.ini [message #897120 is a reply to message #895701] Sun, 22 July 2012 03:31 Go to previous message
neal zhang is currently offline neal zhangFriend
Messages: 45
Registered: July 2012
Member
resolved,when Platform.getConfigurationLocation() throw exception,create a empty file config.ini
Previous Topic:Another NoClassDefFoundError
Next Topic:Validating SSL works in RMI
Goto Forum:
  


Current Time: Sat Dec 07 11:52:44 GMT 2024

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

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

Back to the top