Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Installing Java
PostPosted: Wed Oct 06, 2010 9:03 pm 
Offline
Newbie

Joined: Thu Sep 30, 2010 7:23 pm
Posts: 2
Hi ... i have a problem, maybe someone here can help me.

I want to install java.

Im doing:

sudo apt-get install java-package
its giving me: could find package

and with sudo apt-get install sun-java6-jdk
its giving me package sun-java6-jdk has no installation candidate.

I did the same thing on my laptop (ubuntu) and it worked.
but when I go to my linode(ubuntu) via terminal it does not....

any ideas? can some one please help?


Top
   
 Post subject:
PostPosted: Wed Oct 06, 2010 9:15 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Might help if you told people what Distro you're using.


Top
   
 Post subject:
PostPosted: Wed Oct 06, 2010 9:32 pm 
Offline
Senior Newbie

Joined: Thu Feb 04, 2010 8:49 pm
Posts: 19
You have two options:

- for the opensource package in the Ubuntu repos:
Code:
sudo apt-get install openjdk-6-jdk


- if you want Sun's java you have to add it's repositories to apt:
Code:
echo "
deb http://archive.canonical.com/ lucid partner
deb-src http://archive.canonical.com/ lucid partner
" >> /etc/apt/sources.list

apt-get update

apt-get install sun-java6-jdk

_________________
VladGh.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group