Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with RCP app and os.name property
Problem with RCP app and os.name property [message #635789] Thu, 28 October 2010 02:48 Go to next message
Timo is currently offline Timo
Messages: 2
Registered: October 2010
Junior Member
Hi

I have a problem with my RCP application (Eclipse 3.6) and operating system recognition with "os.name" system property. I'm running the RCP application on Windows 7 64bit and JRE 1.6.0_18 32bit is bundled with the application.

When the application is started with the .exe laucher and I query the JVM system property "os.name", I get "Windows Vista". This does not occur on every Windows 7 workstation. If I launch the application using command "java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar ..." os is recognized correctly as Windows 7. If I start Eclipse using eclipse.exe, "os.name" is reported correctly (Help -> About Eclipse -> Installation Details -> Configuration -> os.name).

Does anyone know what could be causing this weird behaviour..?

Thanks in advance,

-Timo



Re: Problem with RCP app and os.name property [message #635806 is a reply to message #635789] Thu, 28 October 2010 04:06 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
On 28.10.2010 08:48, Timo wrote:
> Hi
>
> I have a problem with my RCP application (Eclipse 3.6) and operating
> system recognition with "os.name" system property. I'm running the RCP
> application on Windows 7 64bit and JRE 1.6.0_18 32bit is bundled with
> the application.

What precisely do you mena with "bundled"? There are several forms
of doing this, among them to provide a directory "jre" parallel to the
RCP executable with or without extra provision of the path to the
VM.

> When the application is started with the .exe laucher and I query the
> JVM system property "os.name", I get "Windows Vista". This does not
> occur on every Windows 7 workstation. If I launch the application using
> command "java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar ..."
> os is recognized correctly as Windows 7. If I start Eclipse using
> eclipse.exe, "os.name" is reported correctly (Help -> About Eclipse ->
> Installation Details -> Configuration -> os.name).
>
> Does anyone know what could be causing this weird behaviour..?

It is unclear from your description whether you are working with
Eclipse 3.6.0 or 3.6.1. I believe there were still some fixes
related to Windows 7 in Eclipse 3.6.1, but I could not find
the corresponding bugzilla entries in the moment. The above
description sounds familiar to me, but I cannot proof that.

HTH & Gre
Re: Problem with RCP app and os.name property [message #635817 is a reply to message #635806] Thu, 28 October 2010 04:55 Go to previous message
Timo is currently offline Timo
Messages: 2
Registered: October 2010
Junior Member
>What precisely do you mena with "bundled"? There are several
>forms of doing this, among them to provide a directory "jre"
>parallel to the RCP executable with or without extra provision
>of the path to the VM.

JRE dir is located parallel to the executable and JVM path is defined in the .ini file with the -vm switch.

>It is unclear from your description whether you are working with
>Eclipse 3.6.0 or 3.6.1. I believe there were still some fixes
>related to Windows 7 in Eclipse 3.6.1, but I could not find
>the corresponding bugzilla entries in the moment. The above
>description sounds familiar to me, but I cannot proof that.

I'm currently working with 3.6.0. Probably I should test if the problem still exists with 3.6.1.

Any other ideas?

Thanks,

-Timo



Previous Topic:problem exporting a product
Next Topic:editor area dynamically hiding/showing
Goto Forum:
  


Current Time: Thu Apr 24 14:58:42 EDT 2014

Powered by FUDForum. Page generated in 0.01581 seconds