Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-vm oracle-jdk-bin
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
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Sat Mar 02, 2019 10:42 am    Post subject: gentoo-vm oracle-jdk-bin Reply with quote

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
View user's profile Send private message
Massimog
Apprentice
Apprentice


Joined: 04 Nov 2011
Posts: 164
Location: Osimo(AN)

PostPosted: Sat Mar 02, 2019 1:54 pm    Post subject: Reply with quote

ma non fai prima a configurare eclipse a puntare su quella versione?
_________________
Distribuzione: Gentoo x86_64
Desktop: GNOME 3.30.2
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Sat Mar 02, 2019 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Mar 02, 2019 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Sat Mar 02, 2019 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Mar 02, 2019 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Sat Mar 02, 2019 2:50 pm    Post subject: Reply with quote

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
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