Re: How to install javac in ubuntu 10.04
Open System-Administration-Software Sources and check which repositories are enabled (selected). The top two or three should be at least. If they are not, select them.
After that search again in Synaptic for sun-java6-jdk, that is the main package for development. javac is only the executable compiler name. The JDK, Java Development Kit is what you need for compiling applications.
The JRE is usually installed by default, that's the Runtime Environment you need for running java programs/apps, even the ones included on websites.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit