View previous topic :: View next topic |
Author |
Message |
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 10:02 am Post subject: [JAVA] Installazione |
|
|
Devo far funzionare un applicativo java che si chiama quick trade e su un forum non tecnico mi è stato detto che devo installare la 1.3.x;
Riporto quanto mi è stato detto: "Io attualmente per Quick Trade uso la 1.3.1_11. Se, come me, hai l'SDK della 1.4.x già installato, puoi usare Java Web Start di quest'ultimo e installare solo il JRE della 1.3.x. "
allora io ho fatto un emerge sun-j2sdk (presumo sia questo che devo insallare) ma mi da quest'errore:
(cd linux_i486_compiler2/product; make)
make[2]: Entering directory `/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[2]: javac: Command not found
make[2]: *** [../generated/MakeDeps.class] Error 127
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp'
make: *** [product] Error 2
!!! ERROR: dev-java/sun-j2sdk-1.4.1-r1 failed.
!!! Function src_compile, Line 141, Exitcode 2
!!! (no error message)
bash-2.05b#
help! |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 10:10 am Post subject: |
|
|
Da quello che dici, sembra tu abbia solo bisogno dell'interprete Java [la Java Virtual Machine] e non anche del componente per la creazione di programmi in java [il Software Development Kit].
Se dai questo comando:
Code: | emerge -s blackdown-jre |
cosa ti appare in console?
iauz
deadhead _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy !
Last edited by .:deadhead:. on Mon Jun 14, 2004 10:15 am; edited 2 times in total |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Mon Jun 14, 2004 10:11 am Post subject: Re: Installare java |
|
|
alkaid wrote: | Devo far funzionare un applicativo java che si chiama quick trade e su un forum non tecnico mi è stato detto che devo installare la 1.3.x;
Riporto quanto mi è stato detto: "Io attualmente per Quick Trade uso la 1.3.1_11. Se, come me, hai l'SDK della 1.4.x già installato, puoi usare Java Web Start di quest'ultimo e installare solo il JRE della 1.3.x. "
allora io ho fatto un emerge sun-j2sdk (presumo sia questo che devo insallare) ma mi da quest'errore:
|
Se quello che ti serve é la versione 1.3 devi dire a emerge che vuoi quella versione:
Code: |
emerge =dev-java/sun-jdk-1.3.1.9
|
se non ricordo male per installare java dei scaricare manualmente i package dalla sun (per accettarne la licenza) e metterlo in distfiles.... _________________ Ciao da me! |
|
Back to top |
|
|
sourcez Apprentice
Joined: 05 Feb 2004 Posts: 166 Location: Italy
|
Posted: Mon Jun 14, 2004 10:18 am Post subject: |
|
|
Code: | make[2]: javac: Command not found |
Questo significa che ,almeno da utente root, non hai il "PATH" del java impostato nella variabile d'ambiente $JAVA_PATH o più in generale $PATH, quindi l'eseguibile javac non viene trovato...
Ma se lo stai installando adesso il java forse è un errore dell'ebuild _________________ "Tutti pensano a cambiare lumanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 10:53 am Post subject: |
|
|
.:deadhead:. wrote: | Da quello che dici, sembra tu abbia solo bisogno dell'interprete Java [la Java Virtual Machine] e non anche del componente per la creazione di programmi in java [il Software Development Kit].
Se dai questo comando:
Code: | emerge -s blackdown-jre |
cosa ti appare in console?
iauz
deadhead |
bash-2.05b# emerge -s blackdown-jre
Searching...
[ Results for search key : blackdown-jre ]
[ Applications found : 1 ]
* dev-java/blackdown-jre
Latest version available: 1.4.1
Latest version installed: [ Not Installed ]
Size of downloaded files: 61,708 kB
Homepage: http://www.blackdown.org
Description: Blackdown Java Runtime Environment 1.4.1
License: sun-bcla-java-vm
bash-2.05b# emerge blackdown-jre
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/blackdown-jre-1.4.1 to /
>>> md5 src_uri j2re-1.4.1-01-linux-i586-gcc3.2.bin
!!! File is corrupt or incomplete. (Digests do not match)
>>> our recorded digest: 79b565410dd30548271b9a2802b9f564
>>> your file's digest: 3857975cd3b7ebcbe544ba0a46308e0c
!!! File does not exist: /usr/portage/distfiles//j2re-1.4.1-01-linux-i586-gcc2.95.bin
bash-2.05b# |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 10:54 am Post subject: |
|
|
sourcez wrote: | Code: | make[2]: javac: Command not found |
Questo significa che ,almeno da utente root, non hai il "PATH" del java impostato nella variabile d'ambiente $JAVA_PATH o più in generale $PATH, quindi l'eseguibile javac non viene trovato...
Ma se lo stai installando adesso il java forse è un errore dell'ebuild |
blackdown l'avevo già installato ma QuickTrade non funzionava lo stesso, allora lo ho disinstallato, ma mi sa che ho combinato un casino perchè prima di disinstallarlo ho installato il j2re-1_3_0_01-linux.bin |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 10:57 am Post subject: Re: Installare java |
|
|
randomaze wrote: | alkaid wrote: | Devo far funzionare un applicativo java che si chiama quick trade e su un forum non tecnico mi è stato detto che devo installare la 1.3.x;
Riporto quanto mi è stato detto: "Io attualmente per Quick Trade uso la 1.3.1_11. Se, come me, hai l'SDK della 1.4.x già installato, puoi usare Java Web Start di quest'ultimo e installare solo il JRE della 1.3.x. "
allora io ho fatto un emerge sun-j2sdk (presumo sia questo che devo insallare) ma mi da quest'errore:
|
Se quello che ti serve é la versione 1.3 devi dire a emerge che vuoi quella versione:
Code: |
emerge =dev-java/sun-jdk-1.3.1.9
|
ho installato j2re-1_3_0_01-linux.bin scaricato dal sito della sun, ma non so se lo ho nstallato correttamente perchè lo ho messo in /usr/java
se non ricordo male per installare java dei scaricare manualmente i package dalla sun (per accettarne la licenza) e metterlo in distfiles.... | |
|
Back to top |
|
|
theRealMorpheu5 l33t
Joined: 26 Feb 2004 Posts: 841 Location: Vicenza, IT
|
Posted: Mon Jun 14, 2004 11:03 am Post subject: |
|
|
alkaid wrote: |
bash-2.05b# emerge blackdown-jre
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/blackdown-jre-1.4.1 to /
>>> md5 src_uri j2re-1.4.1-01-linux-i586-gcc3.2.bin
!!! File is corrupt or incomplete. (Digests do not match)
>>> our recorded digest: 79b565410dd30548271b9a2802b9f564
>>> your file's digest: 3857975cd3b7ebcbe544ba0a46308e0c
!!! File does not exist: /usr/portage/distfiles//j2re-1.4.1-01-linux-i586-gcc2.95.bin
bash-2.05b# |
Esattamente quello che è apparso a me oggi tentando di installare Mozilla col supporto java. |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 11:06 am Post subject: |
|
|
theRealMorpheu5 wrote: | alkaid wrote: |
bash-2.05b# emerge blackdown-jre
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/blackdown-jre-1.4.1 to /
>>> md5 src_uri j2re-1.4.1-01-linux-i586-gcc3.2.bin
!!! File is corrupt or incomplete. (Digests do not match)
>>> our recorded digest: 79b565410dd30548271b9a2802b9f564
>>> your file's digest: 3857975cd3b7ebcbe544ba0a46308e0c
!!! File does not exist: /usr/portage/distfiles//j2re-1.4.1-01-linux-i586-gcc2.95.bin
bash-2.05b# |
Esattamente quello che è apparso a me oggi tentando di installare Mozilla col supporto java. |
allora non è un problema di incasinamento mio |
|
Back to top |
|
|
sourcez Apprentice
Joined: 05 Feb 2004 Posts: 166 Location: Italy
|
Posted: Mon Jun 14, 2004 11:15 am Post subject: |
|
|
Be non è un consiglio molto ortodosso ma se sei sicuro che
il pacchetto non è danneggiato ricrea l'MD5 digest sulla base del pacchetto che hai scaricato:
Code: | cd /usr/portage/"category"/"package"
ebuild /usr/portage/"category"/"package"/"package-version.ebuild" digest |
_________________ "Tutti pensano a cambiare lumanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 11:20 am Post subject: |
|
|
alkaid wrote: | blackdown l'avevo già installato ma QuickTrade non funzionava lo stesso |
Ah... peccato. Eh si allora ci si butta tra le braccia di SUN
Innanzitutto ti consiglio di legger questo HOW-TO in Italiano su Java
Operativamente, disinstalla tutte le varie JVM, JDK che hai installato precedentemente.
Assicurati di avere la USE flag +java presente in
Poi dai il comando Code: | java-config --list-available-vms | ed assicurati che dia risultato nullo.
Scarica dal sito di Sun la JVM [j2re-1_4_2_04-linux-i586.bin]
copia il file che hai scaricato in Code: | /usr/portage/distfiles |
Infine dai il comando: Code: | emerge -Dv sun-jre-bin |
Se arrivi in fondo, dovresti essere a cavallo. _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy !
Last edited by .:deadhead:. on Mon Jun 14, 2004 12:31 pm; edited 1 time in total |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 11:36 am Post subject: |
|
|
ma è proprio j2re-1.4.1-01-linux-i586-gcc3.2.bin il file?
sul sito della sun non lo trovo |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 12:29 pm Post subject: |
|
|
alkaid wrote: | ma è proprio j2re-1.4.1-01-linux-i586-gcc3.2.bin il file?
sul sito della sun non lo trovo |
No scusami ho sbagliato io...
Da questa pagina dal sito della SUN clicca sul link Code: | J2SE v 1.4.2_04 JRE includes the JVM technology | , accetta la licenze che ti viene proposta e scarica il file per Code: | Linux Platform self-extracting file (j2re-1_4_2_04-linux-i586.bin, 13.52 MB) |
Questo file copialo poi in Code: | /usr/portage/distfiles |
Assicurati di avere attivata la USE flag "java" nel tuo file /etc/make.conf
A questo punto digita questo comando da console
Code: | ACCEPT_KEYWORDS="~x86" emerge -pDv sun-jre-bin |
ACCEPT_KEYWORDS="~x86" lo usi per permetterti di installare il pacchetto sun-jre-bin che al momento è masked nel portage tree.
Se l'output del comando sopra è:
Code: |
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] dev-java/java-config-1.2.6 12 kB
[ebuild N ] sys-libs/lib-compat-1.3 3,076 kB
[ebuild N ] dev-java/sun-jre-bin-1.4.2.04 -doc -gnome -kde -mozilla 13,841 kB |
allora sei a posto, dai il comando
Code: | ACCEPT_KEYWORDS="~x86" emerge -Dv sun-jre-bin |
e dovresti avere dopo un po' la JVM di SUN installata.
Come ti ho postato poi sopra, segui la guida a Java di Gentoo.
in bocca al lupo
deadhead _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
|
sourcez Apprentice
Joined: 05 Feb 2004 Posts: 166 Location: Italy
|
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
|
sourcez Apprentice
Joined: 05 Feb 2004 Posts: 166 Location: Italy
|
Posted: Mon Jun 14, 2004 12:47 pm Post subject: |
|
|
Scusami stavo scrivendo mentre rispondevate _________________ "Tutti pensano a cambiare lumanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 5:50 pm Post subject: |
|
|
bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge -pDv sun-jre-bin
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N F ] dev-java/sun-jre-bin-1.4.2.04 -doc +gnome +kde +mozilla 0 kB
Total size of downloads: 0 kB
bash-2.05b#
posso fare l'emerge? |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 5:51 pm Post subject: |
|
|
.:deadhead:. wrote: |
E' la dimostrazione che la community di Gentoo è troppo la migliore |
...per questo non avevo dubbi |
|
Back to top |
|
|
sourcez Apprentice
Joined: 05 Feb 2004 Posts: 166 Location: Italy
|
Posted: Mon Jun 14, 2004 5:57 pm Post subject: |
|
|
direi di si!
Nota la "F", significa che il pacchetto dovrà essere scaricato manualmente... _________________ "Tutti pensano a cambiare lumanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31453 Location: here
|
Posted: Mon Jun 14, 2004 6:12 pm Post subject: |
|
|
sourcez wrote: | direi di si!
Nota la "F", significa che il pacchetto dovrà essere scaricato manualmente... |
Fai partire l'installazione che ti dira' lui dove scaricarli. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Mon Jun 14, 2004 6:21 pm Post subject: |
|
|
alkaid wrote: | bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge -pDv sun-jre-bin
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N F ] dev-java/sun-jre-bin-1.4.2.04 -doc +gnome +kde +mozilla 0 kB
posso fare l'emerge? |
Benissimo!
Come ti ha detto sourcez vai senza timore. Devi ovviamente xò aver scaricato prima il file Code: | j2re-1_4_2_04-linux-i586.bin | ed averlo messo in .
Facciamo il tifo per te. Tienici aggiornato poi con i progressi... _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31453 Location: here
|
Posted: Mon Jun 14, 2004 6:22 pm Post subject: |
|
|
.:deadhead:. wrote: | ed averlo messo in . |
Precisazione in
Code: | /usr/portage/distfiles |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 6:55 pm Post subject: |
|
|
* Setting sun-jre-bin-1.4.2.04 as default
* Use java-config to reassign your VM.
System Virtual Machine set
You may want to update your enviroment by running:
"/usr/sbin/env-update && source /etc/profile"
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
* ******************************************************
* After installing sun-jre-bin-1.4.2.04 this
* was set as the default JVM to run.
* When finished please run the following so your
* enviroment gets updated.
* /usr/sbin/env-update && source /etc/profile
* Or use java-config program to set your preferred VM
* ******************************************************
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> dev-java/sun-jre-bin-1.4.2.04 merged.
>>> Recording dev-java/sun-jre-bin in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
* IMPORTANT: 85 config files in /etc need updating.
* IMPORTANT: 13 config files in /usr/kde/3.2/share/config need updating.
* Type emerge --help config to learn how to update config files.
bash-2.05b#
non mi ha chiesto nulla |
|
Back to top |
|
|
alkaid Guru
Joined: 21 Feb 2004 Posts: 322 Location: Padova
|
Posted: Mon Jun 14, 2004 7:09 pm Post subject: |
|
|
però l'applicativo ancora non funziona
l'applicativo è una piattaforma di trading on line che trovate all'indirizzo www.iwbank.it
in teoria facendo login su quick trade dovrebbe partire la piattaforma, invece continua a dirmi di scaricarmi la jvm (per windows)
i tecnici di iwbank mi hanno detto che funziona anche con linux
leggete qui cosa mi han detto:
http://forum.iwbank.it/showthread.php?s=&threadid=2800 |
|
Back to top |
|
|
|