Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
manuelle java installation [solved]
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
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Thu Dec 07, 2006 9:58 pm    Post subject: manuelle java installation [solved] Reply with quote

hiho,

ich habe vor mir manuell das 1.6er sun-jdk zu installieren, da ich es für
bestimmte applikationen benötige.
da es noch kein ebuild gibt wollte ich dies nochmal manuell versuchen.

die frage ist nun, wo kann ich diese installation registrieren, so das ich es als
alternative java machine auswählen kann?

habe schon viel im web gesucht und auch gelesen, aber bin mir da nicht wirklich
klar geworden wie ich sowas anstellen soll.

danke im voraus, Maik
_________________
Linux 3.1.6 x86_64 | AMD Phenom(tm) II X6 1100T Processor AuthenticAMD 3315.405 MHz |
Bogomips: 39782.81 | Mem: 7992MB | Swap: 5.94GB | Screen: nvidia GeForce 9500GT @ 1920x1080 (24 bpp)


Last edited by Moonfire on Sun Dec 10, 2006 11:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 614
Location: Munich, Germany

PostPosted: Thu Dec 07, 2006 10:06 pm    Post subject: Reply with quote

Hi,

am einfachsten wäre es dir von https://bugs.gentoo.org/show_bug.cgi?id=133657 das ebuild zu hohlen und es dann in dein overlay zu packen.

Wo genau welche Dateien hinkopiert werden müssen, damit eselect java und eselect java-nsplugin funktionieren weiß ich nicht, aber falls du es wirklich manuell machen willst kannst du ja im 1.5er/2.6er ebuild nachschauen.
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
_eckobar_
Apprentice
Apprentice


Joined: 06 Sep 2006
Posts: 211

PostPosted: Thu Dec 07, 2006 10:29 pm    Post subject: Reply with quote

hier die schritte, wie ich sie immer ausführe

  • SDK von http://java.sun.com saugen, am besten das binary extraction file, nicht das rpm
  • entpacken
  • nach /opt/SDK verschieben (natürlich beliebig, jedoch macht es dort sinn)
  • chown root:root -R /opt/SDK
  • chmod a+rx -R /opt/SDK, damit auch für andere user ausführbar
  • export JAVA_HOME=/opt/SDK
  • export PATH=$PATH:$JAVA_HOME/bin


dann kann du deine applikationen wie gewohnt starten.
das wars ganz einfach und easy. aber vorsicht, du genießt nicht die vorteile von portage. also vorsicht ist geboten

PS: gegebenen falls mußt du verfizieren, ob du nicht vielleicht schon eine SDK installiert hast (vielleicht über portage), weil dann mußt du beim setzen der envVars vorsichtig sein, weil sonst hast du unter umständen zwei java binaries im PATH, was natürlich nicht so gut wäre.
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Thu Dec 07, 2006 10:31 pm    Post subject: Reply with quote

Aber es gibt doch keinen Vorteil, es an Portage vorbei zu installieren?
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Thu Dec 07, 2006 10:39 pm    Post subject: Reply with quote

ok, ich will es auch nicht unbedingt drann vorbei installieren.
hatte nur kein ebuild da.
nachdem ich nun das von dem link oben gesaugt habe und einfach noch an
das "rc" statt "beta" angepaßt hatte, wollte ich es auch emergen.
Ich wollte nun als fleißig das binary digesten.
aber obwohl der dateiname richtig ist, und das binary
im "distfiles" liegt, findet es die datei nicht.
das ganz geschieht wenn ich
Code:
moonX sun-jdk # ebuild sun-jdk-1.6.0_rc.ebuild digest

!!! dev-java/sun-jdk-1.6.0_rc has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download jdk-6-rc-linux-amd64.bin from:
 * http://java.sun.com/javase/6/download.jsp
 * Select the Linux AMD64 self-extracting file
 * and move it to /usr/portage/distfiles

ausführe.

hat jemand ne idee woran das liegen kann.
das prob hatte ich noch nie, zumal er das file nicht im distfiles findet,
obwohl ich es nach dem manuellen saugen von der sun seite dahin verschoben
hatte.

danke Maik
_________________
Linux 3.1.6 x86_64 | AMD Phenom(tm) II X6 1100T Processor AuthenticAMD 3315.405 MHz |
Bogomips: 39782.81 | Mem: 7992MB | Swap: 5.94GB | Screen: nvidia GeForce 9500GT @ 1920x1080 (24 bpp)
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Fri Dec 08, 2006 6:15 am    Post subject: Reply with quote

Na? Ist es denn wirklich da? Mach mal ein ls /usr/portage/distfiles/jdk* und schau nach.
Beachte, dass er die AMD64 Version haben will.
Es kann sein, dass du die gar nicht brauchst, da du ein x86 System hast. Die will er dann aber trotzdem haben, um primär die Fetch Bedingungen vom Ebuild erfüllen zu können.
Alternativ löscht du die betreffende Zeile einfach aus dem Ebuild.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Fri Dec 08, 2006 6:48 am    Post subject: Reply with quote

hmmm, soweit kenn ich mich mit meiner hardware aus.
mit dem lesen das klappt auch ganz gut :wink:

um es dir zu beweisen:

Code:
moonX sun-jdk # ls /usr/portage/distfiles/jd*
/usr/portage/distfiles/jdepend-2.9.zip
/usr/portage/distfiles/jdk-1_5_0_08-dlj-linux-amd64.bin
/usr/portage/distfiles/jdk-1_5_0_08-dlj-linux-i586.bin
/usr/portage/distfiles/jdk-1_5_0_09-dlj-linux-amd64.bin
/usr/portage/distfiles/jdk-1_5_0_10-dlj-linux-amd64.bin
/usr/portage/distfiles/jdk-6-rc-linux-amd64.bin

Code:

!!! dev-java/sun-jdk-1.6.0_rc has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download jdk-6-rc-linux-amd64.bin from:
 * http://java.sun.com/javase/6/download.jsp
 * Select the Linux AMD64 self-extracting file
 * and move it to /usr/portage/distfiles

Code:
moonX sun-jdk # uname -a
Linux moonX 2.6.19 #1 SMP PREEMPT Thu Nov 30 12:08:28 CET 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux


Hier ist das ebuild für euch zum schauen: klick


und wie gesagt, er erkennt das file nicht *seufz*
_________________
Linux 3.1.6 x86_64 | AMD Phenom(tm) II X6 1100T Processor AuthenticAMD 3315.405 MHz |
Bogomips: 39782.81 | Mem: 7992MB | Swap: 5.94GB | Screen: nvidia GeForce 9500GT @ 1920x1080 (24 bpp)
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Fri Dec 08, 2006 7:03 am    Post subject: Reply with quote

Hm. Da hast du recht. War auch nicht so gemeint, dass du davon keine Ahnung hast, sondern als Hilfe, weil man manchmal den Wald vor lauter Bäumen nicht sieht.

Das einzige, was mir einfällt ist, dass du _rc in _beta umgewandelt hast.
Das sollte nun aber nichts machen, wenn man sich das Ebuild anschaut.

Bin da auch grad ratlos.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Fri Dec 08, 2006 7:29 am    Post subject: Reply with quote

sorry falls es bös rübergekommen ist,
war auch meinerseits nicht so gemeint *g
werd mir das nach der arbeit nochmal anschauen, evtl gibts ja bis
dahin hier irgend ne geniale idee, is schon echt komisch 8O
_________________
Linux 3.1.6 x86_64 | AMD Phenom(tm) II X6 1100T Processor AuthenticAMD 3315.405 MHz |
Bogomips: 39782.81 | Mem: 7992MB | Swap: 5.94GB | Screen: nvidia GeForce 9500GT @ 1920x1080 (24 bpp)
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Dec 10, 2006 9:59 pm    Post subject: Reply with quote

Um den digest zu erstellen brauchst du alle drei files.. jdk amd64, jdk 586, und das jce.

Das ebuild ist ja für alle drei files zuständig, also braucht es auch für alle drei ne md5sum ;)

also man braucht:
tom@SiRiUS /usr/local/overlays/gimpel/dev-java/sun-jdk $ ls files/sun-jdk-1.6.0_rc
files/sun-jdk-1.6.0_rc
und
/usr/portage/distfiles/jdk-6-rc-linux-amd64.bin
/usr/portage/distfiles/jdk-6-rc-linux-i586.bin
/usr/portage/distfiles/jce_policy-6-rc.zip

Da is der overlay bzipped:
(link removed)
;)


Aber mit dem env.d file von bugs.gentoo.org ist was faul...

EDIT: .. und nicht nur am env file.. das ganze ebuild ist faul.. das nutzt ja java eclass, statt java-vm-2 ... omg.. wasn honk war das denn?
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay


Last edited by gimpel on Sun Dec 10, 2006 11:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Dec 10, 2006 11:10 pm    Post subject: Reply with quote

So.. jetzt nochmal der overlay, aber diesmal generation2!
http://gimpel.ath.cx/~tom/sun-jdk-1.6.0-rc.tar.bz2

..einfach in ${PORTDIR_OVERLAY}/dev-java entpacken.
;)

Aber ist nur notdürftig gefixt, so dass es installiert, und das --accept-license tut nicht, bin ich aber zu faul zu fixen, also einfach noch license akzeptieren :P

Und bei beta/rc gibts den dlj service nicht, d.h. manuell herunterladen - die pkg_nofetch() dafür einzubauen war ich jetzt auch zu faul...
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Moonfire
Apprentice
Apprentice


Joined: 01 Jan 2006
Posts: 158
Location: Leipzig

PostPosted: Sun Dec 10, 2006 11:46 pm    Post subject: Reply with quote

genial @gimpel

richtig gute arbeit, funzt soweit einwandfrei.
danke
_________________
Linux 3.1.6 x86_64 | AMD Phenom(tm) II X6 1100T Processor AuthenticAMD 3315.405 MHz |
Bogomips: 39782.81 | Mem: 7992MB | Swap: 5.94GB | Screen: nvidia GeForce 9500GT @ 1920x1080 (24 bpp)
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