When u install sun’s jdk manually on ubuntu, java classpath doesn’t get set automatically unlike in windows. So when you enter command javac in terminal window, it says “javacĀ command not found”. So here is the very simple way to set up the classpath for java on ubuntu.
STEP 1 : Open the terminal window.
STEP 2: [...]
Setting up java classpath on ubuntu