View previous topic :: View next topic |
Author |
Message |
oscarandrea Apprentice
Joined: 27 Nov 2015 Posts: 182 Location: Italy/Cosenza
|
Posted: Sat Mar 02, 2019 10:42 am Post subject: gentoo-vm oracle-jdk-bin |
|
|
salve, sto installando oracle-jdk-bin:11 (quindi testing), a fine installazione mi da questo warning:
Code: | >>> Installing (1 of 1) dev-java/oracle-jdk-bin-11.0.2::gentoo
* Updating icons cache ... [ ok ]
* Updating .desktop files database ... [ ok ]
* Updating icons cache ... [ ok ]
!!! Error: Target "oracle-jdk-bin-11" doesn't appear to be valid!
exiting
* oracle-jdk-bin-11.0.2 set as the default system-vm.
* Updating .desktop files database ... [ ok ]
* The experimental gentoo-vm USE flag has not been enabled so this JDK
* will not be recognised by the system. For example, simply calling
* "java" will launch a different JVM. This is necessary until Gentoo
* fully supports Java 9. This JDK must therefore be invoked using its
* absolute location under /opt/oracle-jdk-bin-11.0.2.
>>> Recording dev-java/oracle-jdk-bin in "world" favorites file...
* Messages for package dev-java/oracle-jdk-bin-11.0.2:
* The experimental gentoo-vm USE flag has not been enabled so this JDK
* will not be recognised by the system. For example, simply calling
* "java" will launch a different JVM. This is necessary until Gentoo
* fully supports Java 9. This JDK must therefore be invoked using its
* absolute location under /opt/oracle-jdk-bin-11.0.2.
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system. |
quindi se richiamo i vari eseguibili da /opt funzionano, ma ovviamente non vengono visti globalmente da vari software tipo eclipse, in package.use ho inserito come segue la flag, ma non sembra fungere:
[oscar@gentooscar ~]$ cat /etc/portage/package.use/java
dev-java/oracle-jdk-bin javafx alsa gentoo-vm
idee?
grazie |
|
Back to top |
|
|
Massimog Apprentice
Joined: 04 Nov 2011 Posts: 164 Location: Osimo(AN)
|
Posted: Sat Mar 02, 2019 1:54 pm Post subject: |
|
|
ma non fai prima a configurare eclipse a puntare su quella versione? _________________ Distribuzione: Gentoo x86_64
Desktop: GNOME 3.30.2 |
|
Back to top |
|
|
oscarandrea Apprentice
Joined: 27 Nov 2015 Posts: 182 Location: Italy/Cosenza
|
Posted: Sat Mar 02, 2019 1:57 pm Post subject: |
|
|
Massimog wrote: | ma non fai prima a configurare eclipse a puntare su quella versione? |
potrei configurare delle variabili d'ambiente, sì, oppure far puntare eclipse a quella versione, ma ad ogni aggiornamento sarebbe un casino e comunque non mi serve solo per eclipse |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30916 Location: here
|
Posted: Sat Mar 02, 2019 2:19 pm Post subject: |
|
|
Code: | [ebuild NSF ~] dev-java/oracle-jdk-bin-11.0.2:11::gentoo [1.8.0.202:1.8::gentoo] USE="alsa cups fontconfig -commercial -doc (-gentoo-vm) -gtk2 -gtk3 -headless-awt -javafx -nsplugin (-selinux) -source" 175,431 KiB |
Non funziona perche' la use flag e' macherata (lo capisci perche' e' scritta fra parentesi).
/usr/portage/profiles/base/package.use.mask: | # James Le Cuirot <chewi@gentoo.org> (17 Dec 2017)
# Java 9+ is not yet fully supported on Gentoo. Having a masked
# gentoo-vm flag allows us to provide it without it breaking Gentoo
# packages. Those who wish to experiment with it as a fully recognised
# Gentoo JVM can unmask the flag.
dev-java/oracle-jdk-bin:9 gentoo-vm
dev-java/oracle-jdk-bin:11 gentoo-vm
dev-java/oracle-jre-bin:9 gentoo-vm
dev-java/openjdk-bin:11 gentoo-vm
dev-java/openjdk:11 gentoo-vm |
per smacherare la use flag usa il file /etc/portage/profile/package.use.mask _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
oscarandrea Apprentice
Joined: 27 Nov 2015 Posts: 182 Location: Italy/Cosenza
|
Posted: Sat Mar 02, 2019 2:46 pm Post subject: |
|
|
fedeliallalinea wrote: | Code: | [ebuild NSF ~] dev-java/oracle-jdk-bin-11.0.2:11::gentoo [1.8.0.202:1.8::gentoo] USE="alsa cups fontconfig -commercial -doc (-gentoo-vm) -gtk2 -gtk3 -headless-awt -javafx -nsplugin (-selinux) -source" 175,431 KiB |
Non funziona perche' la use flag e' macherata (lo capisci perche' e' scritta fra parentesi).
/usr/portage/profiles/base/package.use.mask: | # James Le Cuirot <chewi@gentoo.org> (17 Dec 2017)
# Java 9+ is not yet fully supported on Gentoo. Having a masked
# gentoo-vm flag allows us to provide it without it breaking Gentoo
# packages. Those who wish to experiment with it as a fully recognised
# Gentoo JVM can unmask the flag.
dev-java/oracle-jdk-bin:9 gentoo-vm
dev-java/oracle-jdk-bin:11 gentoo-vm
dev-java/oracle-jre-bin:9 gentoo-vm
dev-java/openjdk-bin:11 gentoo-vm
dev-java/openjdk:11 gentoo-vm |
per smacherare la use flag usa il file /etc/portage/profile/package.use.mask |
grazie, quindi in quel file aggiungo:
dev-java/oracle-jdk-bin gentoo-vm
giusto? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30916 Location: here
|
Posted: Sat Mar 02, 2019 2:47 pm Post subject: |
|
|
oscarandrea wrote: | grazie, quindi in quel file aggiungo:
dev-java/oracle-jdk-bin gentoo-vm |
No devi mettere il segno - alla use flag per smacherarla
Code: | dev-java/oracle-jdk-bin -gentoo-vm |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
oscarandrea Apprentice
Joined: 27 Nov 2015 Posts: 182 Location: Italy/Cosenza
|
Posted: Sat Mar 02, 2019 2:50 pm Post subject: |
|
|
fedeliallalinea wrote: | oscarandrea wrote: | grazie, quindi in quel file aggiungo:
dev-java/oracle-jdk-bin gentoo-vm |
No devi mettere il segno - alla use flag per smacherarla
Code: | dev-java/oracle-jdk-bin -gentoo-vm |
|
grazie! ha funzionato |
|
Back to top |
|
|
|