Most people start learning Java on Windows by writing code on Notepad and them compiling it using the command line javac (compiler) and java(interpreter). This post tell you how to do something similar on BOSS GNU/Linux.
To install Java on BOSS GNU/Linux install sun-java6-jdk, BOSS 3.0 and above have sun-java6-jdk in the repositories so to install use Synaptic (to find out how to set up Synaptic on BOSS GNU/Linux click here).
Another option is to download the latest version of Oracle/ Sun JDK from here. You should download the .bin file, and then run it. Be sure to set the environment variable JAVA_HOME. This can be done by appending the following to your .bashrc file:
export PATH JAVA_HOME
The .bashrc file can be found in your home directory and can easily be edited by typing
after editing ~/.bashrc, open a new terminal window(or in the same terminal type source .bashrc) and type the following command:
this should display the path you just set. Next type
This will show you the version of jdk you just setup.
Once you are done installing JDK, you can now type your Java code on Gedit(its like notepad on steriods) and then compile and run them using javac/java from the shell.
For details on using IDEs like Eclipse or NetBeans on BOSS GNU/Linux click here.