Configuring permissions for JNLP:
I'm trying to run a webstart demo, which ran on my friend's Windows machine, but throws an access error on my Ubuntu Linux box.
javaws 开发者_运维百科http://common.l2fprod.com/jnlp/demo.jnlp
And I get the following error on my Linux box:
java.security.AccessControlException: access denied (java.util.PropertyPermission javawebstart.version read)
I assume this is a configuration issue on my Ubuntu machine. What needs to be changed to allow access to the webstart version?
The default Java installation is different from the one you download explicitly on a Windows machine
Change the default to the Sun Java 6 JDK with
sudo apt-get install sun-java6-jdk
and try again. For Ubuntu 10.4, first enable the appropriate repository with
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
([Canonical release note][1] - note link breaks in StackOverflow, copy manually)
[1]: https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun Java moved to the Partner repository
精彩评论