not able to install javaws

I need to use java web start to run TopCoders ContestAppletProd.jnlp. When I try to run the the arena I get Java not found error.

enter image description here

Upon selecting the option "using Java Web Start" the jnlp file opens up in firefox showing a download dialog which keeps on recurring.

enter image description here

The commands java and javac pretty much work on my system but javaws shows some package is required which on installation command says its already installed.

enter image description here

Has anybody come across this problem? any suggestions to solve are appreciated.


Solution 1:

Installed java-8-openjdk-amd64:

sudo apt-get install default-jre

And I had the same problem.

Install oracle-java solution for me:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

javaws -version
Java(TM) Web Start 11.45.2.14-fcs
...

Select the desired platform for Java, you can:

sudo update-alternatives --config java