Cant find the lock file for Platform app?

View: New views
3 Messages — Rating Filter:   Alert me  

Cant find the lock file for Platform app?

by javadev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a NB platform app. All shortcuts pass in --userdir "some/path/". This seems to work as changing NbPreferences stores in correct "some/path". as well as folders created if they are not present. But for some reason when application is running, the lock.lck file never shows in userdir. Yet in IDE runs, or shortcut with --userdir removed, shows the lock.lck file in testuserdir/ and the default userdir(found in appname.conf) respectively. Any ideas on whats causing this? or even better a fix? Running on vista, admin level and UAC off, java 1.6. TIA all.





Re: Cant find the lock file for Platform app?

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

javadev wrote:
> when application is running, the lock.lck file never shows in userdir. Yet in IDE runs, or shortcut with --userdir
> removed, shows the lock.lck file in testuserdir/ and the default userdir(found in appname.conf) respectively.

Do you have write permission to the userdir and its var/ subdir? Try running with -J-Dorg.netbeans.CLIHandler=0 and if that doesn't give any clue and you can reproduce
from scratch in a pristine environment please

http://wiki.netbeans.org/DevFaqFileBug


Cant find the lock file for Platform app?

by javadev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks like my problem here is that Im using a shortcut to launch the NB app. The shortcut has --userdir "C:\MyPath\". When changed to "C:\\MyPath\\" the locks and lastMod files appear. Funny though, is that as is, the userdir is used normally, that is var and config folders all still work and property changes and file sys changes are reflected here.  So far seems oly the lock and lastModified files are not showing.