-1

Possible Duplicate:
How to install the Sun Java JDK?

Hi all,recently i installed ubuntu in virual box inside the a windows os,but i'm unable to install the jdk in that ubuntu,can any one help me out?

2

3 Answers 3

2
sudo apt-get install openjdk-6-jdk
1
  • although this will install the open-jdk version which might not be what you want.
    – Joel
    Feb 22, 2011 at 10:02
0

type java and follow the instructions

2
  • actually, I would type (ie, I typed) javac to make sure I got the JDK, not the JRE
    – Rolf Rander
    Feb 22, 2011 at 10:08
  • indeed, but I'm hoping this is a skill that would teach more and be useful in future.
    – David O'Meara
    Feb 22, 2011 at 11:31
0

Run sudo synaptic, search for sun java, mark it for installation, and click Apply.

5