jalbum.net et j2re

jalbum.net et j2re - Linux et OS Alternatifs

Marsh Posté le 31-07-2004 à 10:10:38    

bonjour !
 
voilà ...
jalbum cherche j2re :(
 
 
[root@localhost patrick]# sh ./jalbum.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.
[root@localhost patrick]# locate j2re
/usr/java/j2re1.4.2_02
........
/usr/java/j2re1.4.2_02/bin
 
j'ai cru comprendre qu'il fallait modifier le .bash_profile
si c'est lui le voilà :
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin
 
export PATH
unset USERNAME
 
_________________________________________
 
je rajoute ca en dessous , apres la derniere ligne ?  
 
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin"
 
est ce que c'est ca ? ou je suis a cote de la plaque ?
 
merci
 
 
 
 

Reply

Marsh Posté le 31-07-2004 à 10:10:38   

Reply

Marsh Posté le 31-07-2004 à 12:58:41    

merci, mais rien .
je sais peut etre pas faire ou ... ???????????
 
voilà le fichier en question :
------------------------------------------------------------------
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin
 
export PATH
unset USERNAME
 
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin"
 
---------------------------------------------------------------------
 
j'ai fait quoi de mal ?  :fou:  
j'ai essaye sans le /bin mais rien .
faut rester zennnnnnnnn  :jap:


Message édité par patrick2 le 31-07-2004 à 13:00:21
Reply

Marsh Posté le 31-07-2004 à 13:00:37    

# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin
 
export PATH
unset USERNAME
 
PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin"

Reply

Marsh Posté le 31-07-2004 à 14:21:12    

Moi j'ai ça :
 
 
export JAVA_HOME=/usr/lib/j2re1.4.2_04
export PATH=$JAVA_HOME/bin:$PATH
 
export PATH
 


Message édité par Data Jim le 31-07-2004 à 14:21:49
Reply

Marsh Posté le 31-07-2004 à 14:22:45    

Forcément, tu exportes le path avant de le changer :o

Reply

Marsh Posté le 31-07-2004 à 17:30:34    

Data Jim a écrit :

Forcément, tu exportes le path avant de le changer :o


 
ok, j'essaie d'etre sage  :lol:  
 
j'ai essaye ca :
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
export JAVA_HOME=/usr/java/j2re1.4.2_02
export PATH=$JAVA_HOME/bin:$PATH  
 
export PATH
unset USERNAME
---------------------------------------
et ca :
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
export JAVA_HOME=/usr/java/j2re1.4.2_02/bin
export PATH=$JAVA_HOME/bin:$PATH  
 
export PATH
unset USERNAME
 
--------------
rien de rien  
 
 :pfff:  
 
[patrick@localhost patrick]$ su
Password:
[root@localhost patrick]# sh ./jalbum.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.
[root@localhost patrick]#
 
mais ou est donc orniJAVA  :sarcastic:

Reply

Marsh Posté le 31-07-2004 à 17:40:36    

C'est le bash_profile de root que tu as édité là ?

Reply

Marsh Posté le 31-07-2004 à 17:48:29    

non, celui de mon user .
c'est ca qui merde ?
zut,je pensais que ca gazerait ...

Reply

Marsh Posté le 31-07-2004 à 17:50:35    

Tu édites les préférences de ton user, et tu execute le script en root, alors forcément ;)

Reply

Marsh Posté le 31-07-2004 à 20:00:25    

vi, pas bien reflechi sur ce coup là  :sarcastic:  
 bon je suis sur "mon root"  
 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
mesg n
 
# User specific environment and startup programs
export JAVA_HOME=/usr/java/j2re1.4.2_02
export PATH=$JAVA_HOME/bin:$PATH  
 
export PATH
unset USERNAME
 
 
 :fou:  toujours rien !
 
j'ai essaye avec :
# User specific environment and startup programs
export JAVA_HOME=/usr/java/j2re1.4.2_02/bin
export PATH=$JAVA_HOME/bin:$PATH  
 
mais rien aussi  :pfff:  
 
comprends rien :(

Reply

Marsh Posté le 31-07-2004 à 20:00:25   

Reply

Marsh Posté le 31-07-2004 à 20:50:13    

fais un locate j2re1.4.2_02

Reply

Marsh Posté le 31-07-2004 à 21:33:27    

[patrick@localhost patrick]$  locate j2re1.4.2_02
/usr/java/j2re1.4.2_02
/usr/java/j2re1.4.2_02/COPYRIGHT
/usr/java/j2re1.4.2_02/CHANGES
/usr/java/j2re1.4.2_02/THIRDPARTYLICENSEREADME.txt
/usr/java/j2re1.4.2_02/ControlPanel.html
/usr/java/j2re1.4.2_02/LICENSE
/usr/java/j2re1.4.2_02/README
/usr/java/j2re1.4.2_02/bin
 
 
pas mis le reste .......

Reply

Marsh Posté le 31-07-2004 à 21:47:42    

Je ne vois pas trop alors :/
 
Fais un export juste avant de lancer le script pour voir si le  PATH est bon.

Reply

Marsh Posté le 31-07-2004 à 22:33:08    

ca que tu veut ?
 
 
[root@localhost patrick]# export
declare -x BROWSER="kfmclient openProfile webbrowsing"
declare -x COLORTERM=""
declare -x DESKTOP="kde"
declare -x DESKTOP_SESSION="default"
declare -x DISPLAY=":0.0"
declare -x ENV="/root/.bashrc"
declare -x GCONF_TMPDIR="/tmp"
declare -x GS_LIB="/home/patrick/.fonts"
declare -x GTK2_RC_FILES="/usr/share/themes/Galaxy/gtk-2.0/gtkrc:/etc/gtk-2.0/gtkrc:/home/patrick/.gtkrc-2.0:/home/patrick/.kde/share/config/gtkrc"
declare -x GTK_RC_FILES="/usr/share/themes/Galaxy/gtk/gtkrc:/etc/gtk/gtkrc:/home/patrick/.gtkrc:/home/patrick/.kde/share/config/gtkrc"
declare -x G_BROKEN_FILENAMES="1"
declare -x HELP_BROWSER="kfmclient openProfile webbrowsing"
declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="localhost"
declare -x INPUTRC="/etc/inputrc"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x KONSOLE_DCOP="DCOPRef(konsole-3018,konsole)"
declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-3018,session-1)"
declare -x LANG="fr_FR"
declare -x LANGUAGE="fr_FR:fr"
declare -x LC_ADDRESS="fr_FR"
declare -x LC_COLLATE="fr_FR"
declare -x LC_CTYPE="fr_FR"
declare -x LC_IDENTIFICATION="fr_FR"
declare -x LC_MEASUREMENT="fr_FR"
declare -x LC_MESSAGES="fr_FR"
declare -x LC_MONETARY="fr_FR"
declare -x LC_NAME="fr_FR"
declare -x LC_NUMERIC="fr_FR"
declare -x LC_PAPER="fr_FR"
declare -x LC_SOURCED="1"
declare -x LC_TELEPHONE="fr_FR"
declare -x LC_TIME="fr_FR"
declare -x LESS="-MM"
declare -x LESSKEY="/etc/.less"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="patrick"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MAIL="/var/spool/mail/patrick"
declare -x OLDPWD
declare -x PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"
declare -x PWD="/home/patrick"
declare -x QTDIR="/usr/lib/qt3/"
declare -x SECURE_LEVEL="2"
declare -x SESSION_MANAGER="local/localhost:/tmp/.ICE-unix/2784"
declare -x SHELL="/bin/bash"
declare -x SHLVL="3"
declare -x TERM="xterm"
declare -x TMP="/root/tmp"
declare -x TMPDIR="/root/tmp"
declare -x USER="patrick"
declare -x USERNAME="root"
declare -x WINDOWID="37748741"
declare -x XAUTHORITY="/root/.xauthgGDaqQ"
declare -x XCURSOR_SIZE=""
declare -x XCURSOR_THEME="default"
declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd"
declare -x XMODIFIERS="@im=none"
[root@localhost patrick]# sh ./jalbum.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.
[root@localhost patrick]#
 
j'ai vu ca :
http://www.linuxquestions.org/questions/history/199647


Message édité par patrick2 le 31-07-2004 à 22:41:52
Reply

Marsh Posté le 31-07-2004 à 22:48:46    

patrick2 a écrit :


declare -x PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"


 
Et là on voit que ton PATH n'est pas défini comme il faut.
 
Lance ça en root (note que c'est juste pour tester) :
export JAVA_HOME=/usr/java/j2re1.4.2_02;export PATH=$JAVA_HOME/bin:$PATH ;export PATH ;sh ./jalbum.bin


Message édité par Data Jim le 31-07-2004 à 22:48:59
Reply

Marsh Posté le 31-07-2004 à 23:10:50    

Data Jim a écrit :

Et là on voit que ton PATH n'est pas défini comme il faut.
 
Lance ça en root (note que c'est juste pour tester) :
export JAVA_HOME=/usr/java/j2re1.4.2_02;export PATH=$JAVA_HOME/bin:$PATH ;export PATH ;sh ./jalbum.bin


 
ca lance l'installeur ! super !
j'ai pas continue .
y a il mieux a faire avant ?
en tout cas c'est sur la bonne voie . merci .

Reply

Marsh Posté le 31-07-2004 à 23:27:23    

patrick2 a écrit :


y a il mieux a faire avant ?


Oui.  
Chercher pourquoi le .bash_profile ne fixe pas le PATH comme il devrait le faire. Sinon tu devras rebidouiller à chaque fois que tu lances un programme java.
 
Le .bash_profile est il bien executé ?
Tu peux mettre un  
echo test
dedans pour le vérifier.

Reply

Marsh Posté le 31-07-2004 à 23:34:38    

je comprends rien alors !
on a fait là la meme chose que dans mon .bash_profile
 
j'ai pourtant pris le quatrieme, c'etait bien celui là ?
[root@localhost patrick]# locate .bash_profile
/etc/skel/.bash_profile
/home/patrick/.bash_profile
/var/lib/pgsql/.bash_profile
/root/.bash_profile
[root@localhost patrick]#

Reply

Marsh Posté le 31-07-2004 à 23:44:36    

Soit ton .bash_profile n'est pas executé, soit un autre fichier executé après écrase le PATH.

Reply

Marsh Posté le 31-07-2004 à 23:50:26    

j'ai fait :
__________________________________________________________
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
mesg n
export JAVA_HOME=/usr/java/j2re1.4.2_02
export PATH=$JAVA_HOME/bin:$PATH  
export PATH
 
echo test  
 
unset USERNAME
___________________________________________________
mais je sais pas comment verifier  :(

Reply

Marsh Posté le 31-07-2004 à 23:52:49    

source /root/.bash_profile

Reply

Marsh Posté le 01-08-2004 à 07:51:24    

merci  
 
[root@localhost patrick]# source /root/.bash_profile
bash: TMOUT: readonly variable
test
[root@localhost patrick]#
 
ma variable test serait lu si je comprends bien .
les autres non , ou remodifiees par un autre scrit .
 

Reply

Marsh Posté le 01-08-2004 à 07:54:23    

ca ne peut pas gener le bash profile de mon user :
_______________________________________________________
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin
 
export PATH
unset USERNAME
_______________________________________________________
 
je l'ai laisse "d'origine"

Reply

Marsh Posté le 01-08-2004 à 17:15:39    

patrick2 a écrit :

merci  
 
[root@localhost patrick]# source /root/.bash_profile
bash: TMOUT: readonly variable
test
[root@localhost patrick]#
 
ma variable test serait lu si je comprends bien .
les autres non , ou remodifiees par un autre scrit .


 
Et juste après, quand tu fais un export, la valeur du PATH est bonne ou pas ?

Reply

Marsh Posté le 01-08-2004 à 18:21:07    

visiblement oui .
 
declare -x PATH="/usr/java/j2re1.4.2_02/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"
declare -x PWD="/home/patrick"


Message édité par patrick2 le 01-08-2004 à 18:22:06
Reply

Marsh Posté le 01-08-2004 à 18:28:20    

Hum...
Appremment pour root le .bash_profile n'est pas éxecuté chez moi.
Essaye de mettre ça dans le .bashrc plutôt.

Reply

Marsh Posté le 01-08-2004 à 19:02:39    

[patrick@localhost patrick]$ su
Password:
test
[root@localhost patrick]# source /root/.bashrc
bash: TMOUT: readonly variable
test
[root@localhost patrick]# export
declare -x BROWSER="kfmclient openProfile webbrowsing"
declare -x COLORTERM=""
declare -x DESKTOP="kde"
declare -x DESKTOP_SESSION="default"
declare -x DISPLAY=":0.0"
declare -x ENV="/root/.bashrc"
declare -x GCONF_TMPDIR="/tmp"
declare -x GS_LIB="/home/patrick/.fonts"
declare -x GTK2_RC_FILES="/usr/share/themes/Galaxy/gtk-2.0/gtkrc:/etc/gtk-2.0/gtkrc:/home/patrick/.gtkrc-2.0:/home/patrick/.kde/share/config/gtkrc"
declare -x GTK_RC_FILES="/usr/share/themes/Galaxy/gtk/gtkrc:/etc/gtk/gtkrc:/home/patrick/.gtkrc:/home/patrick/.kde/share/config/gtkrc"
declare -x G_BROKEN_FILENAMES="1"
declare -x HELP_BROWSER="kfmclient openProfile webbrowsing"
declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="localhost"
declare -x INPUTRC="/etc/inputrc"
declare -x JAVA_HOME="/usr/java/j2re1.4.2_02"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x KONSOLE_DCOP="DCOPRef(konsole-5550,konsole)"
declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-5550,session-1)"
declare -x LANG="fr_FR"
declare -x LANGUAGE="fr_FR:fr"
declare -x LC_ADDRESS="fr_FR"
declare -x LC_COLLATE="fr_FR"
declare -x LC_CTYPE="fr_FR"
declare -x LC_IDENTIFICATION="fr_FR"
declare -x LC_MEASUREMENT="fr_FR"
declare -x LC_MESSAGES="fr_FR"
declare -x LC_MONETARY="fr_FR"
declare -x LC_NAME="fr_FR"
declare -x LC_NUMERIC="fr_FR"
declare -x LC_PAPER="fr_FR"
declare -x LC_SOURCED="1"
declare -x LC_TELEPHONE="fr_FR"
declare -x LC_TIME="fr_FR"
declare -x LESS="-MM"
declare -x LESSKEY="/etc/.less"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="patrick"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MAIL="/var/spool/mail/patrick"
declare -x OLDPWD
declare -x PATH="/usr/java/j2re1.4.2_02/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"
declare -x PWD="/home/patrick"
declare -x QTDIR="/usr/lib/qt3/"
declare -x SECURE_LEVEL="2"
declare -x SESSION_MANAGER="local/localhost:/tmp/.ICE-unix/2818"
declare -x SHELL="/bin/bash"
declare -x SHLVL="3"
declare -x TERM="xterm"
declare -x TMP="/root/tmp"
declare -x TMPDIR="/root/tmp"
declare -x USER="patrick"
declare -x USERNAME="root"
declare -x WINDOWID="65011717"
declare -x XAUTHORITY="/root/.xauthZeJbDp"
declare -x XCURSOR_SIZE=""
declare -x XCURSOR_THEME="default"
declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd"
declare -x XMODIFIERS="@im=none"
[root@localhost patrick]#
 
 
j'ai "test" qui apparait apres mon login !

Reply

Marsh Posté le 01-08-2004 à 19:23:05    

bon.
Et sans faire le source ça marche ?
 
On va y arriver :D

Reply

Marsh Posté le 01-08-2004 à 20:27:36    

YOU ARE A WINNER  :D  
c'est nikel . bizzare cette histoire de fichier profile ....
je vais tester tout ca . en attendant merci beaucoup .
sans toi parti dans une galere d'enfer  :sarcastic:

Reply

Marsh Posté le 01-08-2004 à 21:51:57    

un test ici :
http://www.photos-click.com/d70/
va falloir que je regarde du cote des skins, ya pas mal de chose qui me derangent ....

Reply

Marsh Posté le 02-08-2004 à 01:00:57    

De rien.
J'ai réinstaller j2re il y a une semaine, alors je m'en souvenait bien. ;)
 
Edit : Marrante la photo du chien  :)


Message édité par Data Jim le 02-08-2004 à 01:03:11
Reply

Marsh Posté le 02-08-2004 à 20:35:42    

vi c'est du sport de le photographier !
ce petit fou arrive a atteindre 40 kms / h :)
d'ailleur de temps en temps on le fait courir avec la voiture ... il coure devant, on suit ... ( on est a la campagne )
 
j'ai commence a personnaliser un skin .
plutot sympa ce logiciel . et surtout multi OS .
 

Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed