PDA

View Full Version : Compiling and Running Java Programs



anotherusernametoforget
September 13th, 2011, 10:12 PM
Original thread: here
/EDIT

The following does not, in fact, install anything for me. I imagine the file is obsolete... but I'm a newb so I'll dust off a years-old thread




This package installs the essential tools needed to write and run Java programs.

Code:
sudo aptitude install sun-java6-jdk

t1497f35
September 14th, 2011, 12:08 AM
So? What's your problem?

anotherusernametoforget
September 14th, 2011, 02:50 AM
Code:
sudo aptitude install sun-java6-jdk[/QUOTE]

only gets me this:
No candidate version found for sun-java6-jdk

JD8182
September 14th, 2011, 03:44 AM
Applications/Ubuntu Software Center - type in the search Windows at the top "Java" with out the quotations and hit enter, install it using the GUI..




Code:
sudo aptitude install sun-java6-jdk

only gets me this:
No candidate version found for sun-java6-jdk[/QUOTE]

karlson
September 14th, 2011, 04:01 AM
Applications/Ubuntu Software Center - type in the search Windows at the top "Java" with out the quotations and hit enter, install it using the GUI..


Do you have these in your /etc/apt/sources.list


deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

t1497f35
September 14th, 2011, 04:13 AM
Or you can enable the partner repos from the update manager as on screenshot.

nmaster
September 14th, 2011, 04:27 AM
i think that you want to the openJDK package.

sudo apt-get install openjdk-6-jdk