Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openjdk > javafx ?
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
henry
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2002
Posts: 141

PostPosted: Thu Apr 25, 2024 2:59 pm    Post subject: openjdk > javafx ? Reply with quote

Hallo,

ich benötige openjdk mit javafx

[ebuild R ] dev-java/openjdk-17.0.10_p7:17::gentoo USE="alsa cups jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) -lto (-selinux) -source -systemtap" 0 KiB

USE="java" emerge openjdk wir ohne javafx compieliert.

Was bedeuten die Klammern im USE ?

Was muss ich tun, dass openjdk mit javafx compiliert wird?

Danke und 73 Henry

PS: gcc --enable-multilib / prifile 23 stable
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1400
Location: Germany

PostPosted: Thu Apr 25, 2024 7:45 pm    Post subject: Reply with quote

man emerge
Quote:
() circumfix forced, masked, or removed
{} circumfix state is bound to FEATURES settings


Quote:
Generally speaking, flags in brackets are not to be modified by users directly unless they really know what they're doing. Often these flags depend on specific hardware, profiles, kernel features or other circumstances to actually work.


Laut dem ebuild von https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-java/openjdk/openjdk-17.0.10_p7.ebuild kannst man javafx nur verwenden wenn alsa und -headless-awt

Code:
REQUIRED_USE="
   javafx? ( alsa !headless-awt )
   !system-bootstrap? ( jbootstrap )
"

_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4560
Location: Germany

PostPosted: Thu Apr 25, 2024 10:39 pm    Post subject: Reply with quote

Hm, ich denke der Grund fürs maskierte javafx useflag bei dev-java/openjdk-17.0.10_p7:17 ist das es zZt kein passendes openjfx für diese Version gibt.
Siehe zb in der mask message ->
/repos/gentoo/profiles/base/package.use.mask:
# Georgy Yakovlev <gyakovlev@gentoo.org> (2021-10-16)
# openjfx for OpenJDK 17 and 21 is not yet available.
dev-java/openjdk:17 javafx
dev-java/openjdk:21 javafx


Die dep im ebuild ist:
Code:
DEPEND="
javafx? ( dev-java/openjfx:${SLOT}= )
Und wenn man guckt was es gibt:
Code:
eix dev-java/openjfx
* dev-java/openjfx
     Available versions: 
     (8)    (~)8.1000-r2^t
     (11)   (~)11.0.11_p1-r3
       {debug doc (+)media source CPU_FLAGS_X86="sse2"}
     Homepage:            https://openjfx.io
     Description:         Java OpenJFX client application platform
dann ist ersichtlich das es nicht funktionieren kann.
Ansonsten siehe zb auch in der USE-Beschreibung von
Code:
equery u dev-java/openjdk-17.0.10_p7 -f
 M M javafx           : (Restricted to <=dev-java/openjdk-9)


##############################################
henry wrote:
Danke und 73 Henry
Henry,
ist vermutlich ne total bekloppte Frage, aber erkläre mir doch bitte mal was diese "73" bedeuten soll - danke.
Back to top
View user's profile Send private message
henry
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2002
Posts: 141

PostPosted: Fri Apr 26, 2024 6:12 am    Post subject: Reply with quote

Hallo Banana und Josef.95,

danke für Eure Antworten. Löst zwar nicht mein Problem, hilft aber
meinem Verständnis auf die Sprünge.

Ich bin Amateurfunker. 73 ist eine Betriebsabkürzung und
bedeutet "Danke und Gruß". Kommt aus CW-Zeiten, wird aber
auch von Funkern sprachlich benutzt.

73 Henry

PS: Der App-Hersteller verweist mit einem Link auf Oracle-Java.
War vor langer Zeit mal in portage. Macht es Sinn es optional zu installieren?
Oder werde ich das System durcheinander bringen?
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4560
Location: Germany

PostPosted: Fri Apr 26, 2024 10:27 am    Post subject: Reply with quote

henry wrote:
ich benötige openjdk mit javafx
Henry, das sollte mit dev-java/openjdk:8 oder mit dev-java/openjdk:11 machbar sein.
Hab aber ehrlich gesagt keine Ahnung ob es die passend kompatiblen Versionen für deine App sind.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 375

PostPosted: Fri Apr 26, 2024 4:43 pm    Post subject: Reply with quote

In erster Linie solltest du mal in Erfahrung bringen, welche Java-Version du überhaupt brauchst. Vermutlich wird es auf Java 8 oder 11 hinauslaufen. Wenn man das weiss, dann wäre der nächste Schritt, herauszufinden, welche Zusatzpakete du brauchst. Es gab zwischen Java 8 und Java 11 nämlich Änderungen, welche Bibliotheken Teil der Runtime sind und welche nicht mehr. Und ich meine mich zu erinnern, dass jfx eine der Bibliotheken war.

Ab Java 11 sind die Openjdk-Builds binärkompatibel mit den Builds von Oracle Java 11. Sollte Java 11 nötig sein und nicht laufen, dann fehlen in aller Regel einige Bibliotheken. Aber die kann man normalerweise auch nachinstallieren.
Back to top
View user's profile Send private message
henry
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2002
Posts: 141

PostPosted: Sat Apr 27, 2024 1:18 pm    Post subject: Reply with quote

Hallo sMueggli, hallo Josef.95,

der Hersteller gibt an :

System requirements

Java - the recommended is Oracale Java 8 Java SE Runtime Environment (JRE) / Java SE Development Kit (JDK), but other JRE / JDK builds and versions (8 or above) also should work;
For some Denkovi modules - additional drivers must be installed (for example FTDI VCP or Microchip drivers). Please refer to their documentation for more information or download the full software packages.

Bei mir ist Openjdk-17 installiert.


Ich installiere mal

[ebuild N ] dev-java/openjdk-bin-8.402_p06:8::gentoo USE="alsa cups -examples -headless-awt (-selinux) -source" 100.589 KiB
[ebuild NS ] dev-java/openjdk-8.402_p06-r2:8::gentoo [17.0.10_p7:17::gentoo] USE="alsa cups jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) (-selinux) -source (-lto%) (-systemtap%)" 90.954 KiB

Da ist aber auch (-javafx)

73 Henry
Back to top
View user's profile Send private message
henry
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2002
Posts: 141

PostPosted: Sat Apr 27, 2024 1:53 pm    Post subject: Reply with quote

Leider läuft die App mit openjdk:8 auch nicht.

Habe wieder Openjdk-17 drauf. Mit openjdk:8 hat mein Banking-Prog. versagt.

73 Henry

Hiermal die Fehlermeldung:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.UnsupportedOperationException
at java.awt.TrayIcon.<init>(TrayIcon.java:144)
at java.awt.TrayIcon.<init>(TrayIcon.java:168)
at java.awt.TrayIcon.<init>(TrayIcon.java:197)
at bg.denkovi.DenkoviManager294.Main.v.<init>(Unknown Source)
at bg.denkovi.DenkoviManager294.Main.StartPoint.<clinit>(Unknown Source)
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