views:

22

answers:

1

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?

A: 

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

Thorbjørn Ravn Andersen
That isn't available on my distribution. I'm on the newest one and only java-6-openjdk is available.
voodoogiant
Use `add-apt-repository "deb http://archive.canonical.com/ lucid partner"` and try again. For details see https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun Java moved to the Partner repository
Thorbjørn Ravn Andersen