Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con il java [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sat Feb 07, 2004 1:13 pm    Post subject: Problema con il java [Risolto] Reply with quote

Ciao a tutti, ho un bel problemino con il java, non riesco a settare java_home, classpath etc etc. I programmmi che richiedono java non si installano, java-config non funziona, e esportando le variabili a mano nemmeno.
Java-config restituisce questo:
annot find JAVA_HOME in config file /etc/env.d/java/communicator-v479-us.x86-unknown-linux2.2.tar.gz.prz.log
Traceback (most recent call last):
File "/usr/bin/java-config", line 123, in ?
run(option_list)
File "/usr/bin/java-config", line 43, in run
func(args)
File "/usr/lib/python2.3/site-packages/java_config/jc_options.py", line 547, in __call__
set_vm(args, system=True)
File "/usr/lib/python2.3/site-packages/java_config/jc_options.py", line 451, in set_vm
genv = GenerateEnvEntry(vm_name)
File "/usr/lib/python2.3/site-packages/java_config/jc_envgen.py", line 16, in __init__
self.vm = collect_vms()['20' + vmName]
File "/usr/lib/python2.3/site-packages/java_config/jc_util.py", line 188, in collect_vms
cfg = getconfig(os.path.join(VM_DIR, fn), env)
File "/usr/lib/python2.3/site-packages/java_config/cfg_parse.py", line 72, in getconfig
env[var_name] = var_value
File "/usr/lib/python2.3/os.py", line 445, in __setitem__
putenv(key, item)
TypeError: putenv() argument 2 must be string without null bytes, not str

Sia se cerco di settarlo a mano sia se cerco di fare l'emerge di sun-jdk....
Se provo a installare un prog che richiede java invece:
checking if javac works... configure: error: The Java compiler javac failed (see config.log, check the CLASSPATH?)

!!! ERROR: sys-libs/db-4.1.25_p1-r3 failed.
!!! Function src_compile, Line 95, Exitcode 1
!!! (no error message)

Il bello è che il java mi serve al momento per un'esame... E' proprio vero che murphy è sempre in agguato.
Idee, suggerimenti consigli?
Ciao a tutti e grazie
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net


Last edited by Ibanez-RgX on Sun Feb 08, 2004 9:53 am; edited 1 time in total
Back to top
View user's profile Send private message
m.mascherpa
Bodhisattva
Bodhisattva


Joined: 22 May 2002
Posts: 139
Location: italy

PostPosted: Sat Feb 07, 2004 4:47 pm    Post subject: Reply with quote

Ciao,
mi sembra di avere avuto problemi simili recentemente,
prova a postare un "java-config -L", così abbiamo qualche
informazione in più. :)
_________________
mush keeps the dream alive
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 1:33 am    Post subject: Reply with quote

Identico alla stringa che ho postato :( :
stefano@palantir ~ $ java-config -L
Cannot find JAVA_HOME in config file /etc/env.d/java/communicator-v479-us.x86-unknown-linux2.2.tar.gz.prz.log
Traceback (most recent call last):
File "/usr/bin/java-config", line 123, in ?
run(option_list)
File "/usr/bin/java-config", line 30, in run
func = name()
File "/usr/lib/python2.3/site-packages/java_config/jc_options.py", line 409, in __init__
self.vm_list = collect_vms()
File "/usr/lib/python2.3/site-packages/java_config/jc_util.py", line 188, in collect_vms
cfg = getconfig(os.path.join(VM_DIR, fn), env)
File "/usr/lib/python2.3/site-packages/java_config/cfg_parse.py", line 72, in getconfig
env[var_name] = var_value
File "/usr/lib/python2.3/os.py", line 445, in __setitem__
putenv(key, item)
TypeError: putenv() argument 2 must be string without null bytes, not str
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
m.mascherpa
Bodhisattva
Bodhisattva


Joined: 22 May 2002
Posts: 139
Location: italy

PostPosted: Sun Feb 08, 2004 3:06 am    Post subject: Reply with quote

e da root?
_________________
mush keeps the dream alive
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 9:17 am    Post subject: Reply with quote

Identico, stesso messaggio di errrore...
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Feb 08, 2004 9:30 am    Post subject: Reply with quote

Ibanez-RgX wrote:
Identico alla stringa che ho postato :( :
stefano@palantir ~ $ java-config -L
Cannot find JAVA_HOME in config file /etc/env.d/java/communicator-v479-us.x86-unknown-linux2.2.tar.gz.prz.log


E'corretto il fatto che tu vuoi utilizzare la jvm del netscape 4.79?

cosa contiene quel file?
e cosa contiene /etc/env.d/20java ?
_________________
Ciao da me!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 9:30 am    Post subject: Reply with quote

Allora facendo l'emerge della vecchia jdk (1.4.2.02) sun sono riuscito a fargli vedere i path correttamente...
java-config si ostina invece a darmi quel messaggio di errore, per qualunque comando tranne:
root@palantir /home/stefano # java-config -J
/opt/sun-jdk-1.4.2.02/bin/java

e

root@palantir /home/stefano # java-config -v
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

Almeno i path se li va a vedere correttamente...
Idee?
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Feb 08, 2004 9:33 am    Post subject: Reply with quote

Ibanez-RgX wrote:

Idee?


Prova a cancellare (spostare) il file relativo al communicator (quello che ho evidenziato nell'altro msg) e guarda che succede...
_________________
Ciao da me!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 9:37 am    Post subject: Reply with quote

randomaze wrote:
Ibanez-RgX wrote:
Identico alla stringa che ho postato :( :
stefano@palantir ~ $ java-config -L
Cannot find JAVA_HOME in config file /etc/env.d/java/communicator-v479-us.x86-unknown-linux2.2.tar.gz.prz.log


E'corretto il fatto che tu vuoi utilizzare la jvm del netscape 4.79?

cosa contiene quel file?
e cosa contiene /etc/env.d/20java ?


Beh no io vorrei usare il pacchetto standard della sun...

Il file in questione contiene:
root@palantir /home/stefano # more /etc/env.d/20java
# Autogenerated by java-config 0.2.8
# Cmd: /usr/bin/java-config --set-system-vm=sun-jdk-1.4.2.02
JAVA_HOME=/opt/sun-jdk-1.4.2.02
CLASSPATH=/opt/sun-jdk-1.4.2.02/jre/lib:/opt/sun-jdk-1.4.2.02/lib/tools.jar:/opt
/sun-jdk-1.4.2.02/jre/lib/rt.jar
JDK_HOME=/opt/sun-jdk-1.4.2.02
JAVAC=/opt/sun-jdk-1.4.2.02/bin/javac
PATH=/opt/sun-jdk-1.4.2.02/bin:/opt/sun-jdk-1.4.2.02/jre/bin:/opt/sun-jdk-1.4.2.
02/jre/javaws
ROOTPATH=/opt/sun-jdk-1.4.2.02/bin:/opt/sun-jdk-1.4.2.02/jre/bin:/opt/sun-jdk-1.
4.2.02/jre/javaws
LDPATH=/opt/sun-jdk-1.4.2.02/jre/lib
MANPATH=/opt/sun-jdk-1.4.2.02/man

io sinceramente non ci stò capendo + nulla....
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 9:40 am    Post subject: Reply with quote

Mmm sembra funzionare...
root@palantir /etc/env.d/java # java-config -L
[sun-jdk-1.4.2.02] "Sun JDK 1.4.2.02" (/etc/env.d/java/20sun-jdk-1.4.2.02) *
[blackdown-jre-1.4.1] "Blackdown JRE 1.4.1" (/etc/env.d/java/20blackdown-jre-1.4.1)
[blackdown-jdk-1.3.1] "Blackdown JDK 1.3.1" (/etc/env.d/java/20blackdown-jdk-1.3.1)
[sun-j2sdk-1.4.1] "Sun JDK 1.4.1" (/etc/env.d/java/20sun-j2sdk-1.4.1)
[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1)

Ma perchè diavolo erano finiti lì quei file?
Cmq grazie mille
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Feb 08, 2004 9:42 am    Post subject: Reply with quote

Ibanez-RgX wrote:

Ma perchè diavolo erano finiti lì quei file?
Cmq grazie mille


Forse hai emerso il communicator 4.79, e (sempre forse) l'ebuild con i relativi files di configurazione non sono aggiornati
_________________
Ciao da me!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 9:49 am    Post subject: Reply with quote

randomaze wrote:
Ibanez-RgX wrote:

Ma perchè diavolo erano finiti lì quei file?
Cmq grazie mille


Forse hai emerso il communicator 4.79, e (sempre forse) l'ebuild con i relativi files di configurazione non sono aggiornati


è questo il punto, mai fatto l'emerge del communicator... Cmq ho buttato prozilla, e rimesso il caro vecchio wget, non mi è piaciuto per niente stò scherzetto.

Ora stò aggiornando il sistema per vedere se effettivamente funziona tutto, ma a una prima occhiata sembra di si.
Grazie a tutti
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Feb 08, 2004 9:54 am    Post subject: Reply with quote

Ibanez-RgX wrote:

è questo il punto, mai fatto l'emerge del communicator... Cmq ho buttato prozilla, e rimesso il caro vecchio wget, non mi è piaciuto per niente stò scherzetto.


Uh e cosa c'entra prozilla? (io non lo ho, ma da un rapido "emerge -p" non mi sembra sia java-related)
_________________
Ciao da me!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 10:00 am    Post subject: Reply with quote

randomaze wrote:
Ibanez-RgX wrote:

è questo il punto, mai fatto l'emerge del communicator... Cmq ho buttato prozilla, e rimesso il caro vecchio wget, non mi è piaciuto per niente stò scherzetto.


Uh e cosa c'entra prozilla? (io non lo ho, ma da un rapido "emerge -p" non mi sembra sia java-related)


E' un download manager che usavo per scaricare i pacchetti dei vari emerge. I file in quel modo sono di prozilla, sono le varie parti di file che si scarica per fare un download e le ricompone quando ha finito le varie parti....
Appunto non è java-related, x questo non capisco che diavolo ci facessero i suoi file là dentro....
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Feb 08, 2004 10:04 am    Post subject: Reply with quote

Ibanez-RgX wrote:

Appunto non è java-related, x questo non capisco che diavolo ci facessero i suoi file là dentro....


Mah, comunque potresti rimettere al suo posto il file incriminato e poi, con qpkg -f andare a cercare il pacchetto di origine, giusto per riemergerlo/sommergerlo correttamente ;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Sun Feb 08, 2004 10:13 am    Post subject: Reply with quote

in effetti era installato 8O
Mah forse era una dipendenza di qualcosa e non me ne sono accorto, ora l'ho tolto cmq... vediamo se mi rifà sti scherzetti...
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
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
Page 1 of 1

 
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