Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Upgrade Java (VM per generation-{1,2})
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ChobinYY
Apprentice
Apprentice


Joined: 23 Mar 2006
Posts: 156

PostPosted: Mon Jul 17, 2006 10:52 am    Post subject: [Risolto] Upgrade Java (VM per generation-{1,2}) Reply with quote

Mi da questo errore, ma non so a cosa sia dovuto, ho provato a impostare tutto con java-config-1 ecc ma niente :( :(

Calculating dependencies... done!
>>> Emerging (1 of 17) dev-java/ant-core-1.6.2-r5 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking apache-ant-1.6.2-src.tar.bz2 ;-)
* Enabling generation-2 compatibility ...
* There was a problem determining which VM to use for generation-1
* You may need to set your generation-1 VM again, and run env-update && source/etc/profile
* Also, make sure you have followed the Java Upgrade Guide:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml [ !! ]

!!! ERROR: dev-java/ant-core-1.6.2-r5 failed.
Call stack:
ebuild.sh, line 1555: Called dyn_setup
ebuild.sh, line 668: Called pkg_setup
ebuild.sh, line 1248: Called java-pkg_pkg_setup
java-pkg.eclass, line 41: Called die

!!! Couldn't determine VM for generation-1
!!! If you need support, post the topmost build error, and the call stack if relevant.


Last edited by ChobinYY on Mon Jul 17, 2006 8:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Mon Jul 17, 2006 11:29 am    Post subject: Reply with quote

ti dice che non hai una JDK della serie 1.4.x (VM generazione 1) installata e probabilmente hai solo una JDK della serie 1.5.x (VM generazione 2); emergi una JDK 1.4.x a seconda delle tue esigenze (blackdown, sun, ibm ecc ecc).

con le nuove politiche di gentoo, bisogna avere entrambe le JDK per poter compilare/eseguire tutti i software java presenti in portage.

/EDIT:

Gentoo Java Upgrade Guide
Code:
Why can't I use a 1.5 JDK for the generation-1 system VM?

By having a 1.5 JDK as the generation-1 system VM, we will encounter all the problems that caused the package.mask in the first place.

While some people may have been using 1.5 as their system VM without issue, there are still issues with a number of packages with issues. Essentially, we're requiring a 1.4 JDK because that is sure to work with every Java package that haven't been switched over to the new system.

_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5


Last edited by !equilibrium on Mon Jul 17, 2006 1:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Mon Jul 17, 2006 12:20 pm    Post subject: Reply with quote

!equilibrium wrote:
ti dice che non hai una JDK della serie 1.4.x (VM generazione 1) installata e probabilmente hai solo una JDK della serie 1.5.x (VM generazione 2); emergine una a seconda delle tue esigenze.

con le nuove politiche di gentoo, bisogna avere entrambe le JDK per poter compilare/eseguire tutti i software java presenti in portage.


prova a fare un
Code:

emerge "<jdk-1.5"


ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Mon Jul 17, 2006 12:28 pm    Post subject: Reply with quote

comio wrote:
prova a fare un
Code:

emerge "<jdk-1.5"


il risultato è questo:

Code:
Calculating dependencies... done!
[ebuild  N    ] virtual/jdk-1.4.2  0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]


ma non riesco a comprendere il significato del tuo discorso.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Mon Jul 17, 2006 1:30 pm    Post subject: Reply with quote

emerge wrote:
>>> Emerging (1 of 17) dev-java/ant-core-1.6.2-r5 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking apache-ant-1.6.2-src.tar.bz2 ;-)
* Enabling generation-2 compatibility ...
* There was a problem determining which VM to use for generation-1
* You may need to set your generation-1 VM again, and run env-update && source/etc/profile
* Also, make sure you have followed the Java Upgrade Guide:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml [ !! ]

è tutto scritto sul messaggio di errore. basta aprire il link e seguire le istruzioni. praticamente è stato reso disponibile java5 in maniera trasparente per l'utente. se uno ne ha bisogno deve semplicemente seguire la giuda per l'aggiornamento.
Back to top
View user's profile Send private message
ChobinYY
Apprentice
Apprentice


Joined: 23 Mar 2006
Posts: 156

PostPosted: Mon Jul 17, 2006 4:26 pm    Post subject: Reply with quote

Ho seguito la guida, ma niente sempre il solito errore, ho messo JDK della serie 1.4 e mi da sempre il solito errore :(
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Mon Jul 17, 2006 4:28 pm    Post subject: Reply with quote

controlla eventuali problemi con /usr/bin/java-check-environment
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
ChobinYY
Apprentice
Apprentice


Joined: 23 Mar 2006
Posts: 156

PostPosted: Mon Jul 17, 2006 4:42 pm    Post subject: Reply with quote

* === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java Environment.
* We have significantly changed and improved the way Java is handled in many respects.
* Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

* Checking vm_environment_files ...
* Generation-1 configuration files were found in /etc/env.d/java
* Please run the following to remove them:
# rm /etc/env.d/java/20blackdown-jdk-1.4.2.03 /etc/env.d/java/20blackdown-jre-1.4.2.03 /etc/env.d/java/20sun-jre-bin-1.5.0.06

* You must then update your VMs to Generation-2 by running:
# emerge -atv =blackdown-jdk-1.4* =blackdown-jre-1.4* =sun-jre-bin-1.5*

* If you've done this already, but java-check-environment
* still prompts you to emerge the same things, be sure that
* you have the latest version of each package unmasked and
* keyworded properly. [ !! ]
* Some problems were found. Please follow the instructions above, and rerun java-check-environment
Back to top
View user's profile Send private message
ChobinYY
Apprentice
Apprentice


Joined: 23 Mar 2006
Posts: 156

PostPosted: Mon Jul 17, 2006 5:04 pm    Post subject: Reply with quote

quando faccio rm /etc/env.d/java/20blackdown-jdk-1.4.2.03 /etc/env.d/java/20blackdown-jre-1.4.2.03 /etc/env.d/java/20sun-jre-bin-1.5.0.06

si sistema ma poi ovviamente non trova niente dopo :( :(
appena rifaccio emerge -atv =blackdown-jdk-1.4* =blackdown-jre-1.4* =sun-jre-bin-1.5*

torna tutto come prima :(
Back to top
View user's profile Send private message
Wise
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 87

PostPosted: Mon Jul 17, 2006 6:51 pm    Post subject: Reply with quote

Ciao
che versione installi di blackdown-jdk ecc..?
tu stai usando la la nuova modalita di configurazione.. quindi perchè tutto vada bene
dovrebbe essere la blackdown-jdk-1.4.2.03-r12...
poi il se installi il jdk non serve il jre.. che dovrebbe essere gia incluso..(alemno per il sun-jdk è cosi..)
quindi puoi fare al meno di installare blackdown-jre

spero di esserti stato utile!
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Mon Jul 17, 2006 6:53 pm    Post subject: Reply with quote

ChobinYY wrote:
quando faccio rm /etc/env.d/java/20blackdown-jdk-1.4.2.03 /etc/env.d/java/20blackdown-jre-1.4.2.03 /etc/env.d/java/20sun-jre-bin-1.5.0.06

si sistema ma poi ovviamente non trova niente dopo :( :(
appena rifaccio emerge -atv =blackdown-jdk-1.4* =blackdown-jre-1.4* =sun-jre-bin-1.5*

torna tutto come prima :(


prova ad installare così:
Code:

emerge "<jdk-1.5" jdk

così metti il pacchetto virtual.

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
ChobinYY
Apprentice
Apprentice


Joined: 23 Mar 2006
Posts: 156

PostPosted: Mon Jul 17, 2006 8:23 pm    Post subject: Reply with quote

Wise wrote:
Ciao
che versione installi di blackdown-jdk ecc..?
tu stai usando la la nuova modalita di configurazione.. quindi perchè tutto vada bene
dovrebbe essere la blackdown-jdk-1.4.2.03-r12...
poi il se installi il jdk non serve il jre.. che dovrebbe essere gia incluso..(alemno per il sun-jdk è cosi..)
quindi puoi fare al meno di installare blackdown-jre

spero di esserti stato utile!


era proprio questo :) :) io avevo la versione 1.4.2.03, appena ho messo la r12 è partito tutto

ti ringrazio.

ringrazio tutti per la mano :wink:
Back to top
View user's profile Send private message
Cadoro
Apprentice
Apprentice


Joined: 09 Feb 2006
Posts: 154
Location: Napoli

PostPosted: Sun Jul 23, 2006 6:15 pm    Post subject: [Risolto]Installazione Jdk 5...Generation 2 c'è ma 1? Reply with quote

Ho installaro per la prima volta su questa macchina le jdk1.5 seguendo la guida http://www.gentoo.org/proj/en/java/java-upgrade.xmlma solo in parte, poichè non era un aggiornamento.

Comunque con eselect o java-config, ma questo solo su generation 2(penso sia ovvio), riesco a trovare la VM
Code:
 *) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)
e questo per fortuna mi permette di di compilare e di far girare cmq da shell programmi.

Ora ho provato a installare eclipse ma magari anche il supporto java per emacs ma entrambi mi restituiscono lo stesso di errore, che presumo sia di configuarazione
Code:
 * There was a problem determining which VM to use for generation-1
 * You may need to set your generation-1 VM again, and run env-update && source/etc/profile
 * Also, make sure you have followed the Java Upgrade Guide:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml                                                                                               [ !! ]

!!! ERROR: dev-java/ant-core-1.6.2-r5 failed.
Call stack:
  ebuild.sh, line 1555:   Called dyn_setup
  ebuild.sh, line 668:   Called pkg_setup
  ebuild.sh, line 1248:   Called java-pkg_pkg_setup
  java-pkg.eclass, line 51:   Called die

!!! Expected VMHANDLE to be defined in the env, but it wasn't
!!! If you need support, post the topmost build error, and the call stack if relevant.


Ma infatti me n'ero accorto che il listato di generation-1 dato da java-config-1 -l era vuoto e ho anche rieseguito l'intera installazione e seguendo il link dato dall'ebuild ma cmq niente ho sempre la generation1.

Ma pensavo che siccome il mio non era un ggiornamento ma una nuova nstallazione delle jdk1.50 mi installasse direttamente la generatione 2 e così è stato....!!!Ma che devo fare oltre al java-config1 e javaconfig2 devo installare una jdk 1.5 e una inferiore???!!!


Last edited by Cadoro on Sun Jul 23, 2006 9:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sun Jul 23, 2006 7:31 pm    Post subject: Reply with quote

Non tutti gli ebuild supportano la generation 2 quindi devi configurarle entrambe.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Cadoro
Apprentice
Apprentice


Joined: 09 Feb 2006
Posts: 154
Location: Napoli

PostPosted: Sun Jul 23, 2006 8:18 pm    Post subject: Reply with quote

quindi dovrei installare due jdk?


Si tutto ok infatti.....molti degli ebuild per gli ambienti di sviluppo supportano soltanto jdk precedenti.Quindi ho installato l'ultima dipsonibile jdk 1.4.2.12 per la 1e la 1.5(decisamente meglio) per la seconda effettivamente qui http://gentoo-wiki.com/Java_Installation_Help se ne parla..
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Jul 24, 2006 8:37 am    Post subject: Reply with quote

Cadoro wrote:
quindi dovrei installare due jdk?


Esattamente :)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Mon Jul 24, 2006 10:37 am    Post subject: Installazione Tomcat con JDK 1.5 Reply with quote

Ciao a tutti.

Io ho installato sul mio sistema il sun-jdk-1.5, ma non riesco ad emergere tomcat 5.5.
L'errore che mi dà è
Code:
Calculating dependencies... done!
>>> Emerging (1 of 92) dev-java/jakarta-regexp-1.3-r2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking jakarta-regexp-1.3.tar.gz ;-)
 * Enabling generation-2 compatibility ...
 * There was a problem determining which VM to use for generation-1
 * You may need to set your generation-1 VM again, and run env-update && source/etc/profile
 * Also, make sure you have followed the Java Upgrade Guide:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml                                                                                                [ !! ]

!!! ERROR: dev-java/jakarta-regexp-1.3-r2 failed.
Call stack:
  ebuild.sh, line 1555:   Called dyn_setup
  ebuild.sh, line 668:   Called pkg_setup
  ebuild.sh, line 1248:   Called java-pkg_pkg_setup
  java-pkg.eclass, line 41:   Called die

!!! Couldn't determine VM for generation-1
!!! If you need support, post the topmost build error, and the call stack if relevant.


Allora sono andato a leggermi la guida menzionata e ho cercato di impostare la virtual machine:
Code:
candooc canduc # java-config --list-available-vms
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)
2) Sun JRE 1.5.0.07 [sun-jre-bin-1.5] (/usr/share/java-config-2/vm/sun-jre-bin-1.5)

e poi
Code:
candooc canduc # java-config-1 --set-system-vm sun-jdk-1.5
jc_options: VM not found, use --list-available-vms


Che fare???
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Mon Jul 24, 2006 11:00 am    Post subject: Reply with quote

devi installare anche jdk 1.4 per la generazione 1.
Back to top
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Mon Jul 24, 2006 11:11 am    Post subject: Reply with quote

Praticamente tutte le dipendenze di tomcat verranno compilate con il jdk-1.4.
E poichè non tutti i pacchetti sono stati portati al nuovo sistema potresti avere delle incongruenze.
Ti consiglio di installare tutto con la jdk-1.4 e poi usare la 1.5 per l'esecuzione
Back to top
View user's profile Send private message
topper_harley
Guru
Guru


Joined: 05 Apr 2006
Posts: 363
Location: Treviso / Udine (Italy)

PostPosted: Tue Jul 25, 2006 6:25 am    Post subject: Problema java Reply with quote

Nonostante blackdown-jre e blackdown-jdk siano stai emersi correttamente il mio sistema non riesce a trovare una vm, e tutti gli emerge riguardanti programmi dipendenti da java falliscono.

Code:
localhost ~ # java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...
 * Generation-1 configuration files were found in /etc/env.d/java
 * Please run the following to remove them:
# rm /etc/env.d/java/20blackdown-jdk-1.4.2.03 /etc/env.d/java/20blackdown-jre-1.4.2.03

 * You must then update your VMs to Generation-2 by running:
# emerge -atv =blackdown-jdk-1.4* =blackdown-jre-1.4*

 * If you've done this already, but java-check-environment
 * still prompts you to emerge the same things, be sure that
 * you have the latest version of each package unmasked and
 * keyworded properly.                                                                                                 [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun java-check-environment


Ho seguito queste istruzioni ma non cambia nulla.

Code:
localhost ~ # java-config-2 -l
!!! ERROR: The active vm could not be found



I pachhetti sembrano installati:
Code:
* dev-java/blackdown-jdk
     Available versions:  1.3.1-r8 [M]1.3.1-r10 ~1.3.1-r23 1.4.1-r1 ~1.4.1-r12 1.4.2.03 ~1.4.2.03-r2 ~1.4.2.03-r12
     Installed:           1.4.2.03
     Homepage:            http://www.blackdown.org
     Description:         Blackdown Java Development Kit

* dev-java/blackdown-jre
     Available versions:  [M]1.3.1-r9 *1.3.1-r20 1.4.1-r1 ~1.4.1-r12 1.4.2.03 ~1.4.2.03-r2 ~1.4.2.03-r11
     Installed:           1.4.2.03
     Homepage:            http://www.blackdown.org
     Description:         Blackdown Java Runtime Environment


Come posso fare?
_________________
http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Jul 25, 2006 6:59 am    Post subject: Reply with quote

[MOD]
Fatto il merge del thread aperto da Cadoro
Fatto il merge del thread aperto da canduc17
Fatto il merge del thread aperto da topper_harley

Rinominato il titolo del thread in qualcosa di più specifico

-- grazie ad !equilibrium per la segnalazione ;)
[/MOD]
_________________
minimalblue.com | secgroup.github.io/


Last edited by lavish on Tue Jul 25, 2006 7:08 am; edited 1 time in total
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Tue Jul 25, 2006 7:07 am    Post subject: Re: Problema java Reply with quote

topper_harley wrote:


Ho seguito queste istruzioni ma non cambia nulla.

Code:
localhost ~ # java-config-2 -l
!!! ERROR: The active vm could not be found


devi avere entrambe le JDK (serie 1 e serie 2) installate e selezionate correttamente:

- con java-config-1 -s seleziona il JDK della blackdown
- smaschera e installa l'ultima versione disponibile di sun-jdk
- con java-config-2 -s seleziona il JDK della sun
- rilancia java-check-environment
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Jul 25, 2006 8:01 am    Post subject: Reply with quote

Splittato il thread di canduc17 qui: https://forums.gentoo.org/viewtopic-t-483418.html
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
makaveli87
Guru
Guru


Joined: 22 Aug 2005
Posts: 311
Location: Italy

PostPosted: Tue Jul 25, 2006 2:04 pm    Post subject: Problema Java Reply with quote

So che ci sono già topic su questo argomento.. ma non ne ho trovato manco uno in cui ci fosse il mio problema identico.. inoltre alcuni hanno già la tag risolto.. quindi apro la discussione...

Ho seguito la guida di aggiornamento di Java.. e fin li tutto bene, la VM viene riconosciuta eccetera eccetera...
Ora.. sto facendo molti aggiornamenti.. inoltre sono abbastanza newbie... fatto sta che un paio di giorni dopo non riesco più a settare la Java VM. (ho scoperto il tutto così per caso).

L'errore è il seguente:

Code:

Traceback (most recent call last):
   File "/usr/bin/java-config-1", line 14, in ?
     from java_config import jc_options
ImportError: No module named java_config


Ho già riemerso un sacco di volte il jdk, ho lanciato revdep-rebuild ma non risolve niente....


Cosa potrebbe essere??


PS: intanto ho anche questo problema qui.. è un po' che ci sono su, ma non riesco a risolvere.. magari vi viene un'idea anche a voi!
_________________
GoogleTalk: romanovic@gmail.com
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Tue Jul 25, 2006 2:11 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-481060.html

Coda
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum