Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] JRE 1.5.0.06 installiert, aber wird nicht benutzt?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Battlestar Gentoo
l33t
l33t


Joined: 23 Dec 2004
Posts: 708
Location: Wien

PostPosted: Fri Mar 24, 2006 9:20 pm    Post subject: [solved] JRE 1.5.0.06 installiert, aber wird nicht benutzt? Reply with quote

Hallo,

Ich habe mir die neueste JVM von Sun geholt (da es von Portage aus manuell herunterzuladen ist), aber dennoch wird diese offensichtlich nicht benutzt.
Tippe ich java -version in der Bash, wird mir 1.4.2-03 angezeigt, obwohl ich diese "Blackdown"-Version schon mit unmerge deinstallierte.
Laut der Konsolenhilfe zur Java-VM müsste man diese mit java -version:NUMMER ändern können, aber weder java -version:1.5.0.06 noch java -version:1.5.0-06 funktionert: "Unable to locate JRE meeting specification".
Wie kann ich Java beibringen, diese VM zu benutzen?
_________________
vorher: Gentoo Reptile


Last edited by Battlestar Gentoo on Sat Mar 25, 2006 8:50 am; edited 1 time in total
Back to top
View user's profile Send private message
Battlestar Gentoo
l33t
l33t


Joined: 23 Dec 2004
Posts: 708
Location: Wien

PostPosted: Fri Mar 24, 2006 9:32 pm    Post subject: Reply with quote

Gerade sehe ich, dass ich noch das Blackdown jdk 1.4.2 installiert habe. Ich nehme an, dass Java von daher seine Versionsnummer bekommt. Ich dachte der Befehl "java -help" fragt nach der Version der vm?.
_________________
vorher: Gentoo Reptile
Back to top
View user's profile Send private message
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Fri Mar 24, 2006 9:44 pm    Post subject: Reply with quote

prüfe doch einfach mal genau welches du alles installiert hast mit

Code:
java-config -L


danach einfach auf das java umstellen das du möchtest, mit

Code:
java-config -S <deinJava>


-S setzt die variable für das gesamte system
-s ändert es nur für den user

mußt halt schaun wie du es benötigst :wink:
Back to top
View user's profile Send private message
Dr. Nein
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2005
Posts: 100
Location: Jülich

PostPosted: Fri Mar 24, 2006 9:45 pm    Post subject: Reply with quote

Java lässt sich slotted installieren. Mit java-config kannst du dann einstellen, welche JRE/JDK du benutzen willst.
Back to top
View user's profile Send private message
Battlestar Gentoo
l33t
l33t


Joined: 23 Dec 2004
Posts: 708
Location: Wien

PostPosted: Sat Mar 25, 2006 8:50 am    Post subject: Reply with quote

Hallo,

also mit den Befehlen habt ihr recht. Ich nehme aber an, dass das JDK ebenfalls in Version 1.5 vorhanden sein muss, da ich beim wechseln auf 1.5 Fehlermeldungen bekomme, dass javac, javadoc,.. usw nicht gefunden werden.
Leider ist das JDK 1.5 noch hard-masked (viele Dinge können angeblich mit 1.5 noch nicht kompilierte werden), wodurch ich doch noch bei der älteren Version bleibe.
Ich setzt den Beitrag mal auf solved, da meine ursprünglich Frage des Änderns der Java-Version beantwortet wurde.
_________________
vorher: Gentoo Reptile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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