Can `apt-get install` be used for JDK?

2019-03-29 05:50发布

I've been using a linux machine for less than two weeks, so I am extremely new to Linux.

I'd also like to install the Java Developers Kit. How should this be done? Is there an apt-get command, or should I just click on the download button at Sun's website?

I'm sure there is more than one way to do this, and it probably doesn't matter much, but I was impressed with how smoothly apt-get install worked when installing PHP and MySQL, so if there is a right way to do this, I'd like to know.

I'm using Ubuntu version 9.04

7条回答
干净又极端
2楼-- · 2019-03-29 06:55

I am personally a linux mint person. However, I couldn't find this in my respitory:

sudo apt-get install sun-java6-jdk

After poking around for a bit, I was able to get this to work.

sudo apt-get install openjdk-6-jdk

Cheers.

查看更多
登录 后发表回答