dato che io ho avuto un sacco di problemi nell'istallare java, voglio far si che questo post possa essere d'aiuto a quelli che verrano dopo di me.
-Scaricare a questo link, java per linux.
jsecom15b.sun.com:443/ECom/EComActionServlet;jsessionid=AC781C5120B857D504BEBEE3...
-Istallare lo java-package, con kynaptic (lo trovate sotto sistema; per chi avesse invece ubuntu con synaptic)
Se facendo ctrl non lo trovate, vuol dire che dove attivare multiverse e universe.
Per attivarlo manualmente cercate il file sources.list , dovete avere i permessi di root per modificarlo, se non riuscite a loggarvi come root, fate ctrl+alt+F1 e sctivete: sudo chmod 777 /etc/apt/sources.list , forse non ve lo fa fare perch' non siete loggati da root, in questo caso scrivete, prima di quello, questo: su , vi chederà la password di root inseritela.
Per modificarlo vi do il mio gìà perfetto, sostituitelo, ma prima createvi un backup. Eccolo:
deb cdrom:[Kubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/ hoary main restricted
deb
it.archive.ubuntu.com/ubuntu/ hoary main restricted
deb-src
it.archive.ubuntu.com/ubuntu/ hoary main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb
it.archive.ubuntu.com/ubuntu/ hoary-updates main restricted
deb-src
it.archive.ubuntu.com/ubuntu/ hoary-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb
it.archive.ubuntu.com/ubuntu/ hoary universe
deb-src
it.archive.ubuntu.com/ubuntu/ hoary universe
deb
security.ubuntu.com/ubuntu/ hoary-security main restricted
deb-src
security.ubuntu.com/ubuntu/ hoary-security main restricted
deb
security.ubuntu.com/ubuntu/ hoary-security universe
deb-src
security.ubuntu.com/ubuntu/ hoary-security universe
Ora sicuramente con synaptic o kynaptic, troverete ciò che cercate, ovvero lo java-package , istallatelo.
Io java l'ho salvato sul Desktop , voi salvatelo dove volete, ma fate attenzione al percorso che indicate, perchè io indicherò il desktop.
Per Kubuntu:
entrate nella console, loggatevi da root, sarebbe meglio.
E scrivete
cd /home/linux/Desktop #con questo entro nel desktop
sudo dpkg -i sun-j2sdk1.5_1.5.0+update05_i386.deb
sudo update-alternatives --config java #premete il tasto con il numero più alto
E infine per verificare se tutto è andato a buon fine:
java -version
Vi dovrà restituire, in questo caso: version 1.5.0_05
Ricordatevi che le versioni di java camiano e perciò anche questa piccola faq diventerà out, basterà cambiare i nomi dei file.
Spero di non aver dimenticato o sbagliato niente e sopratutto spero di esser stato utile a qualcuno dal mio piccolo.
Ciao