Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anwendung von 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
michi-monsterherz
n00b
n00b


Joined: 08 Jan 2024
Posts: 4

PostPosted: Mon Feb 17, 2025 3:50 pm    Post subject: Anwendung von Javafx Reply with quote

Hallo, ich bin dabei mich in Sachen Java weiter zu bilden. Da bin ich auf Javafx gestoßen. Leider kann ich es nicht installieren, da es von OpenSDK nicht unterstützt wird.
Code:

sysvorOrt /home/michi/programmierung/java # javac JavaFX.java
JavaFX.java:4: Fehler: Symbol nicht gefunden
public class JavaFX extends Application {
                            ^
  Symbol: Klasse Application
JavaFX.java:7: Fehler: Symbol nicht gefunden
    public void start(Stage primaryStage) {
                      ^
  Symbol: Klasse Stage
  Ort: Klasse JavaFX
JavaFX.java:1: Fehler: Package javafx ist nicht vorhanden
import javafx.* ;
^
JavaFX.java:6: Fehler: Methode überschreibt oder implementiert keine Methode aus einem Supertyp
    @Override
    ^
JavaFX.java:9: Fehler: Symbol nicht gefunden
        Label label1 = new Label();
        ^
  Symbol: Klasse Label
  Ort: Klasse JavaFX
JavaFX.java:9: Fehler: Symbol nicht gefunden
        Label label1 = new Label();
                           ^
  Symbol: Klasse Label
  Ort: Klasse JavaFX
JavaFX.java:12: Fehler: Symbol nicht gefunden
        Label label2 = new Label("Reihen - / Rundenzähler");
        ^
  Symbol: Klasse Label
  Ort: Klasse JavaFX
JavaFX.java:12: Fehler: Symbol nicht gefunden
        Label label2 = new Label("Reihen - / Rundenzähler");
                           ^
  Symbol: Klasse Label
  Ort: Klasse JavaFX
JavaFX.java:15: Fehler: Symbol nicht gefunden
        VBox layout = new VBox(10); // 10 is the spacing between elements
        ^
  Symbol: Klasse VBox
  Ort: Klasse JavaFX
JavaFX.java:15: Fehler: Symbol nicht gefunden
        VBox layout = new VBox(10); // 10 is the spacing between elements
                          ^
  Symbol: Klasse VBox
  Ort: Klasse JavaFX
JavaFX.java:19: Fehler: Symbol nicht gefunden
        Scene scene = new Scene(layout, 300, 200);
        ^
  Symbol: Klasse Scene
  Ort: Klasse JavaFX
JavaFX.java:19: Fehler: Symbol nicht gefunden
        Scene scene = new Scene(layout, 300, 200);
                          ^
  Symbol: Klasse Scene
  Ort: Klasse JavaFX
JavaFX.java:28: Fehler: Symbol nicht gefunden
        launch(args);
        ^
  Symbol: Methode launch(String[])
  Ort: Klasse JavaFX
13 Fehler
sysvorOrt /home/michi/programmierung/java #

Code:


[code]sysvorOrt /home/michi # emerge -av openjdk
!!! Repository 'eclipse' is missing masters attribute in '/var/db/repos/eclipse/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

 * IMPORTANT: 32 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.86 s (backtrack: 0/20).

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

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

[/code]

[code]
sysvorOrt /home/michi # echo "dev-java/openjfx" >> /etc/portage/package.unmask [/code]

Das (-javafx) soll ja heissen, das es nicht unterstützt wird. Nur wie kann ich dann unter Gentoo mit Javafx arbeiten?
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 547

PostPosted: Mon Feb 17, 2025 6:06 pm    Post subject: Reply with quote

Ich denke, du brauchst "dev-java/openjfx". Das ist allerdings maskiert und nur für Java 8 und 11 in den Repos.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4695
Location: Germany

PostPosted: Wed Feb 19, 2025 11:20 pm    Post subject: Reply with quote

Eine knappe Stunde vorher wurde auch hier https://forums.gentoo.org/viewtopic-p-8854923.html#8854923 gepostet.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1899
Location: Germany

PostPosted: Thu Feb 20, 2025 6:59 am    Post subject: Reply with quote

@michi-monsterherz

Moderator Hinweis: Bitte doppelte Themenpost in kurzer Zeit vermeiden.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
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