I am very new to using the linux operating system and I'm currently using Ubuntu 13.10 coming off using windows for my whole life. I have been trying to get java development kit installed so I could create and compile java programs. However, when I installed the openJDK program from the ubuntu software center everything went fine and the program installed except it seems as though it didn't install javac to compile. When i open up terminal and type javac it comes up telling me where it can be found implying it wasn't installed. So I was wondering what I need to do in order to get javac to be installed so I could compile in programs such as eclipse.

Thanks in advance.

2 Answers 2


The javac (and other Java development tools) is available for openjdk-7-jdk.

Note that basic compiling within Eclipse might work without javac (but I still recommend having javac) because Eclipse uses its own compiler. See this answer below.


I'm not a developer but you might need to have a look to Eclipse.

you can find details in below article and see if it suits you

You can install it from Software Center; but for latest version; you will need to refer back to Eclipse Website

  • That's the IDE (to write code in), but you still need an external program (javac) to compile the code into Java bytecode. Mar 7, 2014 at 0:32
  • 1
    @saiarcot895 Thanks for your clarificatio as I'm not a developer as I said before but willing to learn :) ,you might also need to have a look to stackoverflow.com/questions/3061654/… which say that Eclipse has its own compiler
    – Ahmadgeo
    Mar 7, 2014 at 0:36
  • Ah, interesting. That explains how Eclipse (and Netbeans) runs code with compile errors. Mar 7, 2014 at 2:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.