|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Aug 2004
Città: Palermo
Messaggi: 1079
|
Installazione java su ubuntu
Salve a tutti ho scaricato, dal sito della sun, il pacchetto .bin con java jdk 1.5.0.9, l'ho installato senza problemi, ora per fare in modo che javac & company siano attivi se non ricordo male dovrei inserire il path in .bash_profile, se lo metto nel .bash_profile nella mia cartella utente lo vedrei solo io, per farlo vedere da tutti gli utenti quale file devo andare a modificare?
Grazie a tutti, ciao ciao. |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Aug 2004
Città: Salento
Messaggi: 1080
|
Quote:
__________________
Il 90% dei problemi riscontrati sui computer sono localizzabili tra la sedia e la tastiera, il restante 10% nella scopa della donna delle pulizie.
|
|
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Aug 2004
Città: Palermo
Messaggi: 1079
|
Ciao, nel file bash.bashrc è così composto:
Codice:
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac
# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
case " $(groups) " in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
EOF
fi
esac
fi
# if the command-not-found package is installed, use it
if [ -x /usr/bin/command-not-found ]; then
function command_not_found_handle {
/usr/bin/command-not-found $1
return $?
}
fi
/home/angelo/download/jdk1.5.0_09/bin dove lo devo incollare? Non vedo nessuna stringa in c'è PATH. Grazie, ciao ciao. |
|
|
|
|
|
#4 | |
|
Senior Member
Iscritto dal: Aug 2004
Città: Salento
Messaggi: 1080
|
Quote:
Codice:
CLASSPATH=".;/home/angelo/download/jdk1.5.0_09/bin" export CLASSPATH
__________________
Il 90% dei problemi riscontrati sui computer sono localizzabili tra la sedia e la tastiera, il restante 10% nella scopa della donna delle pulizie.
|
|
|
|
|
|
|
#5 | |
|
Senior Member
Iscritto dal: Aug 2004
Città: Palermo
Messaggi: 1079
|
Ho inserito:
Quote:
Grazie, ciao ciao. |
|
|
|
|
|
|
#6 |
|
Senior Member
Iscritto dal: Mar 2006
Messaggi: 2516
|
ma fare un sudo update-alternatives --config java e selezionare la java di sun come predefinita no?
|
|
|
|
|
|
#7 | |
|
Senior Member
Iscritto dal: Sep 2001
Città: Roma
Messaggi: 1944
|
Quote:
Altrimenti, le variabili da impostare sono PATH JAVA_HOME e non CLASSPATH, che contiene un path per le classi che si vuole rendere visibili all'avvio dei programmi java.
__________________
"Oggi è una di quelle giornate in cui il sole sorge veramente per umiliarti" Chuck Palahniuk Io c'ero |
|
|
|
|
|
|
#8 | ||
|
Senior Member
Iscritto dal: Aug 2004
Città: Palermo
Messaggi: 1079
|
Ciao a tutti allora, ho modificato il file /etc/bash.bashrc inserendo path invece che classpath ma non cambia nulla.
Ho modificato il file .bash_profile nella mia directory utente in questo modo: Quote:
Se do sudo update-alternatives --config java, ottengo: Quote:
Grazie, ciao ciao. |
||
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:33.



















