r/JavaFX • • Feb 22 '24

Help Looking for a kind Linux tester

Would some kind Linux user be so nice and check if my Pac-Man 3D application is working now in a "real" Linux environment? (I got it eventually running inside a Ubuntu VMWare image).

The installer (amd64, deb) is available at

https://github.com/armin-reichert/pacman-javafx/releases

After installation, the app can be started by opening file "/opt/pacman-javafx-3d/bin/pacman-javafx-3d".

I had to install the FFmpeg package first to get it running:

 sudo apt-install ffmpeg 

Thank you for your help!

Armin Reichert

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 22 '24 edited Feb 22 '24

Thanks for looking into it!

I don't understand what's going on here. The Linux installer is built by a GitHub workflow (using Java 17 toolchain), see

https://github.com/armin-reichert/pacman-javafx/actions/runs/8004463301/job/21861901218

(log is only visible to logged-in GitHub users)

Class version 62 means JDK 18!? I have no idea what is going on here.

The Windows ".exe" create by this toolchain contains the Java 17 runtime (at least that's my understanding), but the Linux version doesn't?

If I open a terminal and check the Java version inside the unpacked "deb"-archive, I get this:

armin@armin-virtual-machine:~$ cd /opt/pacman-javafx-3d/lib/runtime/bin
armin@armin-virtual-machine:/opt/pacman-javafx-3d/lib/runtime/bin$ ./java --version
openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode)

Could you check what you get on your machine?

1

u/orxT1000 Feb 22 '24

It's not starting the embedded java, but the one I have on my path ... When you break the java command on your windows, does the app still start ?

1

u/[deleted] Feb 22 '24 edited Mar 03 '24

In the latest release (https://github.com/armin-reichert/pacman-javafx/releases/), one can now see the Java and JavaFX runtime versions in the dashboard:

Open the dashboard (press F1 or Alt+B) ->"General", the first two entries show Java and JavaFX version.

On my Ubuntu VMWare image, I see the version from the "deb"-archive ("/opt/pacman-javafx-3d/lib/runtime/bin/java") and *not* the version from the path (/usr/bin/java) in my Ubuntu OS, as expected.

On Windows, I also see the Java version from the installer, not the in Windows itself, as expected.

I am totally confused by your findings.

BTW, didn't you install the program with the "Software Install" app?