Sunday, July 17, 2016

Install Oracle JDK with DrJava in Linux

DrJava runs fine in Linux, Mac and Windows.

Easy (but slightly inappropriate) route:

In case you do not have JDK installed,
Download JDK+netbeans bundle from
http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html

Make it executable by using
chmod  +x   jdk-8u91-nb-8_1-linux-i586.sh

Install using
sudo ./ jdk-8u91-nb-8_1-linux-i586.sh



set default path using
sudo update-alternatives --install /usr/bin/java    java    /the/path/where/you/installed/jdk/bin/java  100
sudo update-alternatives --install /usr/bin/javac   javac  /the/path/where/you/installed/jdk/bin/javac 100



Take Drjava from my folder or download
https://www.cs.rice.edu/~javaplt/drjavarice/drjava.jar

Make it executable by using
chmod  +x   drjava.jar

run using
./drjava.rar


or make it runnable through double click by
right click
open with
/usr/bin/java  -jar


References
http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk
http://annajiat.blogspot.com/2015/04/install-java-jdk-on-ubuntu-14-lts.html

No comments: