Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1892 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  jalbum.net et j2re

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

jalbum.net et j2re

n°531300
patrick2
V6 power
Posté le 31-07-2004 à 10:10:38  profilanswer
 

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
 
 
 
 

mood
Publicité
Posté le 31-07-2004 à 10:10:38  profilanswer
 

n°531357
patrick2
V6 power
Posté le 31-07-2004 à 12:58:41  profilanswer
 

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
n°531359
patrick2
V6 power
Posté le 31-07-2004 à 13:00:37  profilanswer
 

# .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"

n°531389
Data Jim
Posté le 31-07-2004 à 14:21:12  profilanswer
 

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
n°531391
Data Jim
Posté le 31-07-2004 à 14:22:45  profilanswer
 

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

n°531526
patrick2
V6 power
Posté le 31-07-2004 à 17:30:34  profilanswer
 

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:

n°531532
Data Jim
Posté le 31-07-2004 à 17:40:36  profilanswer
 

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

n°531536
patrick2
V6 power
Posté le 31-07-2004 à 17:48:29  profilanswer
 

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

n°531538
Data Jim
Posté le 31-07-2004 à 17:50:35  profilanswer
 

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

n°531688
patrick2
V6 power
Posté le 31-07-2004 à 20:00:25  profilanswer
 

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 :(

mood
Publicité
Posté le 31-07-2004 à 20:00:25  profilanswer
 

n°531704
Data Jim
Posté le 31-07-2004 à 20:50:13  profilanswer
 

fais un locate j2re1.4.2_02

n°531720
patrick2
V6 power
Posté le 31-07-2004 à 21:33:27  profilanswer
 

[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 .......

n°531723
Data Jim
Posté le 31-07-2004 à 21:47:42  profilanswer
 

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

n°531739
patrick2
V6 power
Posté le 31-07-2004 à 22:33:08  profilanswer
 

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
n°531742
Data Jim
Posté le 31-07-2004 à 22:48:46  profilanswer
 

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
n°531750
patrick2
V6 power
Posté le 31-07-2004 à 23:10:50  profilanswer
 

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 .

n°531756
Data Jim
Posté le 31-07-2004 à 23:27:23  profilanswer
 

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.

n°531757
patrick2
V6 power
Posté le 31-07-2004 à 23:34:38  profilanswer
 

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]#

n°531764
Data Jim
Posté le 31-07-2004 à 23:44:36  profilanswer
 

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

n°531767
patrick2
V6 power
Posté le 31-07-2004 à 23:50:26  profilanswer
 

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  :(

n°531770
Data Jim
Posté le 31-07-2004 à 23:52:49  profilanswer
 

source /root/.bash_profile

n°531884
patrick2
V6 power
Posté le 01-08-2004 à 07:51:24  profilanswer
 

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 .
 

n°531885
patrick2
V6 power
Posté le 01-08-2004 à 07:54:23  profilanswer
 

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"

n°532052
Data Jim
Posté le 01-08-2004 à 17:15:39  profilanswer
 

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 ?

n°532097
patrick2
V6 power
Posté le 01-08-2004 à 18:21:07  profilanswer
 

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
n°532100
Data Jim
Posté le 01-08-2004 à 18:28:20  profilanswer
 

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

n°532119
patrick2
V6 power
Posté le 01-08-2004 à 19:02:39  profilanswer
 

[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 !

n°532123
Data Jim
Posté le 01-08-2004 à 19:23:05  profilanswer
 

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

n°532155
patrick2
V6 power
Posté le 01-08-2004 à 20:27:36  profilanswer
 

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:

n°532195
patrick2
V6 power
Posté le 01-08-2004 à 21:51:57  profilanswer
 

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 ....

n°532236
Data Jim
Posté le 02-08-2004 à 01:00:57  profilanswer
 

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
n°532644
patrick2
V6 power
Posté le 02-08-2004 à 20:35:42  profilanswer
 

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 .
 

mood
Publicité
Posté le   profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  jalbum.net et j2re

 

Sujets relatifs
[mdk9.1] Le j2re de java fait planter mozilla...[JAVA] Installation du J2RE sous RedHat 8.0
Plus de sujets relatifs à : jalbum.net et j2re


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR