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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
tatra603
Posts: 83
Joined: Fri Sep 17, 2004 10:53 am
Location: Prague, the Czech Republic, Europe

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

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
tatra603
Posts: 83
Joined: Fri Sep 17, 2004 10:53 am
Location: Prague, the Czech Republic, Europe

Post by tatra603 »

Yes, it works. Thank You. Stepan
Post Reply