Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Java for Ubuntu?

Tags:

java

ubuntu

I just installed Ubuntu 10.4 in VMWare Workstation.

When I try to install java, I couldn't find the package:

xxx@ubuntu:~$sudo apt-get install sun-java6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jre has no installation candidate

I'm confused.

like image 623
Chris Avatar asked Jan 22 '26 00:01

Chris


1 Answers

Ubuntu is supporting OpenJDK-6 on Lucid Lynx (10.04). See the Ubuntu packages for OpenJDK for details. See also:

  • https://help.ubuntu.com/community/Java
  • https://help.ubuntu.com/community/JavaInstallation

As someone else mentioned, the Ubuntu/Debian multiverse repositories have additional Java packages; you can enable them by following these instructions:

  • https://help.ubuntu.com/community/Repositories/Ubuntu
like image 86
Craig Trader Avatar answered Jan 24 '26 23:01

Craig Trader



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!