Reputation: 14379
I have installed spring roo version 1.2.3.RELEASE on Ubuntu Linux 12.04 using these instructions: http://static.springsource.org/spring-roo/reference/html/intro.html#intro-installation
I then create an empry directory and try to start roo as instructed in the tutorial: http://static.springsource.org/spring-roo/reference/html/beginning.html#beginning-step-1
But I get this error:
java.lang.Exception: Unable to create bundle cache lock file: java.io.FileNotFoundException: /usr/share/roo/cache/cache.lock (Permission denied)
And indeed my user does not have permission to write to this file, it is owned by root as expected and if I run sudo roo
everything seems to work. Does the installation instructions miss some vital part about permissions? Not knowing that much about roo yet, I would prefer not running it as root.
Upvotes: 1
Views: 728
Reputation: 3753
Can you not just give your user (or group) write access to the roo dir (and sub dirs)?
Upvotes: 2
Reputation: 2842
Why don't you install Roo in a path that you're allowed to use? For instance, in your home: ~/Applications/spring-roo-1.2.3.RELEASE
Upvotes: 1