You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Oliver Zemann <ol...@gmail.com> on 2012/12/21 21:25:52 UTC
Problem with Permissions in Win7
Hi,
i created a installer witz izpack and its working as expected when
installing in $HOME.
But when i use eg: c:\program files\.. and try to run the application:
c:\Program Files (x86)\SoundBox>java -jar SoundBox-Starter-1.0-SNAPSHOT.jar
java.lang.Exception: Unable to create bundle cache lock file:
java.io.FileNotFoundException: C:\Program Files
(x86)\SoundBox\cache\cache.lock (Zugriff verweigert)
at
org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
at org.apache.felix.framework.Felix.init(Felix.java:629)
at org.apache.felix.main.Main.main(Main.java:289)
Could not create framework: org.osgi.framework.BundleException: Error
creating bundle cache.
org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:634)
at org.apache.felix.main.Main.main(Main.java:289)
Caused by: java.lang.Exception: Unable to create bundle cache lock file:
java.io.FileNotFoundException: C:\Program Files
(x86)\SoundBox\cache\cache.lock (Zugriff verweigert)
at
org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
at org.apache.felix.framework.Felix.init(Felix.java:629)
... 1 more
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Unknown Source)
at org.dyndns.soundi.App.main(App.java:118)
My properties file contains:
felix.cache.rootdir=${user.home}/cache
when i change that to:
felix.cache.rootdir=C:/Users/oli/cache
Its working? Whats wrong here?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Problem with Permissions in Win7
Posted by "Richard S. Hall" <he...@ungoverned.org>.
You should check to see what the value of user.home is when you run Java
on Win7...it looks like it isn't expanding to the right value, since
this works fine for me on the Mac.
Maybe it is related to:
http://bugs.sun.com/view_bug.do?bug_id=4787931
-> richard
On 12/21/12 15:25 , Oliver Zemann wrote:
> Hi,
>
> i created a installer witz izpack and its working as expected when
> installing in $HOME.
> But when i use eg: c:\program files\.. and try to run the application:
>
> c:\Program Files (x86)\SoundBox>java -jar
> SoundBox-Starter-1.0-SNAPSHOT.jar
> java.lang.Exception: Unable to create bundle cache lock file:
> java.io.FileNotFoundException: C:\Program Files
> (x86)\SoundBox\cache\cache.lock (Zugriff verweigert)
> at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
> at org.apache.felix.framework.Felix.init(Felix.java:629)
> at org.apache.felix.main.Main.main(Main.java:289)
> Could not create framework: org.osgi.framework.BundleException: Error
> creating bundle cache.
> org.osgi.framework.BundleException: Error creating bundle cache.
> at org.apache.felix.framework.Felix.init(Felix.java:634)
> at org.apache.felix.main.Main.main(Main.java:289)
> Caused by: java.lang.Exception: Unable to create bundle cache lock
> file: java.io.FileNotFoundException: C:\Program Files
> (x86)\SoundBox\cache\cache.lock (Zugriff verweigert)
> at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
> at org.apache.felix.framework.Felix.init(Felix.java:629)
> ... 1 more
> Exception in thread "main" java.util.NoSuchElementException: No line
> found
> at java.util.Scanner.nextLine(Unknown Source)
> at org.dyndns.soundi.App.main(App.java:118)
>
> My properties file contains:
> felix.cache.rootdir=${user.home}/cache
>
> when i change that to:
> felix.cache.rootdir=C:/Users/oli/cache
>
> Its working? Whats wrong here?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org