Page 1 of 1

Fatal error: oXygen can not write port into oxygen.lock file

Posted: Tue Feb 28, 2006 1:08 pm
by tatra603
Hello!

Yesterday I successfully installed oXygen 7.0 with trial licence. It is "All platform" edition of oXygen and I have JRE 1.5.0_05. Today I can not run oXygen, because fatal error:


L:\RunFiles\oxygen>rem L:\RunFiles\oxygen\ is expanded pathname of the current s
cript under NT

L:\RunFiles\oxygen>SET CP="L:\RunFiles\oxygen\;L:\RunFiles\oxygen\/lib/oxygen.ja
r;L:\RunFiles\oxygen\/classes;"

L:\RunFiles\oxygen>REM java -Xmx256m -cp "L:\RunFiles\oxygen\;L:\RunFiles\oxyge
n\/lib/oxygen.jar;L:\RunFiles\oxygen\/classes;" ro.sync.exml.Oxygen

L:\RunFiles\oxygen>REM Uncomment the following line (and comment the above one)


L:\RunFiles\oxygen>REM if using the version with the JRE included.

L:\RunFiles\oxygen>jre\bin\java -Xmx256m -cp ".;lib/oxygen.jar;classes;" ro.sync
.exml.Oxygen
11:06:14,343 0 ERROR [ main ] ro.sync.exml.h - Could not write the port due to:
java.io.FileNotFoundException: C:\Documents and Settings\Default User\oxygen.loc
k (Access is denied) C:\Documents and Settings\Default User\oxygen.lock (Access
is denied)
11:06:14,640 297 FATAL [ main ] ro.sync.ui.application.ApplicationLauncher - jav
a.lang.NullPointerException
java.lang.NullPointerException
at ro.sync.exml.N.S.A(Unknown Source)
at ro.sync.exml.N.S.<init>(Unknown Source)
at ro.sync.exml.N.S.<init>(Unknown Source)
at ro.sync.exml.N.S.J(Unknown Source)
at ro.sync.exml.N.S.F(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at ro.sync.exml.Oxygen.main(Unknown Source)

I have no write access to C: disk. So "oxygen.lock" file can not be written into C. How can I run oXygen under these conditions?

Thank You,

Stepan

Posted: Tue Feb 28, 2006 3:11 pm
by sorin_ristache
Hello,

<oXygen/> requires for starting up only write access to the Windows home directory of the user currently logged in. In fact <oXygen/> writes your preferences and license key in the [user-home-dir]\Application Data directory, which is the usual location for storing such data between two launches of a Windows application. It is strange that you do not have write access to your own Windows home dir.

In this case in order to run <oXygen/> you have to specify a directory with write access in one of the following ways:

- if you run <oXygen/> from command line add a parameter -Duser.home=/full/path/to/dir/with/write/access to the line containing java -Xmx256m -cp ... in the file oxygen.bat;

- if you start up <oXygen/> from the Start menu -> Programs shortcut you have to add -Duser.home=/full/path/to/dir/with/write/access to the file [oXygen-install-dir]/oxygen7.0.ini, on the line called Virtual Machine Parameters.

The first case applies to you as you run the All Platforms install kit.

Regards,
Sorin

Posted: Tue Feb 28, 2006 3:25 pm
by tatra603
Yes, it works. Thank You. Stepan