Java notes

From raju

Install and setup Java

  • Setup directories
    mkdir -p ~/software/zipped/java ~/software/unZipped
  • Download Java → scroll to the bottom → click link under "Linux x64" → jre-8u271-linux-x64.tar.gz

Move the tar.gz file into ~/software/zipped/java

  • unzip
    cd ~/software/unZipped
    tar xzvf ~/software/zipped/java/jre-8u271-linux-x64.tar.gz -C .
  • Add the unzipped directory to PATH in ~/.zshrc
    # For Java
    export PATH=$HOME/software/unZipped/jre1.8.0_271/bin:$PATH

run jnlp files

use javaws

    sudo apt-get install icedtea-netx
    javaws foo.jnlp

where is jconsole

It comes as part of java installation. Sample location C:\Program Files\Java\jdk1.8.0_161\bin\jconsole.exe

What is the difference between jmc and jconsole

jconsole is light weight compared to jmc.