However, when I launch the application
from a non-administrative user account, I get the following error:
Java was started by returned exit code=13
-launcher C:\Program Files\Apps\MyApplication\MyApp.exe
--launcher.library C:\Program Files\Apps\MyApplication\plugins\org.eclipse.quinox.launcher.win32.win32.x86_1.1.2--.v20130807-1835\eclipse_1503.dll
-startup C:\Program Files\Apps\MyApplication\plugins\org.eclipse.quinox.launcher_1.3.0.v20130327-1440.jar
-vm C:\Program Files\Apps\MyApplication\\jre/jre/bin\j9vm\jvm.dll
This might be because the non-administrative
user do not have sufficient right to create the folder C:\Users\%username%\Desktop.
(But the non-administrative user should have sufficient right to write
to their own Desktop path??)
The application would start without
error if I hardcoded the value of the "Desktop" registry (i.e.
without the use of %username%, like so:
I also noticed that if I deleted the
"Desktop" registry key, the application would start fine too.
I have checked folder permissions on
the C:\Users\MyUserName and C:\Users\MyUserName\Desktop, both of them have
"owner" permission level.
Given this, I was wondering if you could
provide some information about how the Eclipse runtime make use of the
"Desktop" registry key and why does it seem like the application
could only resolve the %username% variable as an administrative user? While
for the non-administrative user, the registry key has to be hardcoded?
Hursley House, Hursley Park Road
Winchester, SO21 2JN
IBM United Kingdom Limited
Registered in England and Wales with number 741598
Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6