Hello,
I am trying to get a Java program to run on the Raspberry Pi. The program is a Java Swing (GUI) application that should be the only one running on the Pi.
Java is installed:and X-Server as well.Code:
openjdk version “17.0.13” 2024-10-15OpenJDK Runtime Environment (build 17.0.13+11-Debian-2deb12u1)OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2deb12u1, mixed mode, sharing)
If I run the Java application without starting the GUI, it runs fine.
In which case why not stop there? Do you need to have the desktop/X server running for some other process?
As to the symptoms you're seeing, I suspect your java program is starting then immediately exiting. When startx is invoked the way you're doing it the X server will exit immediately after the program you told it to run does.
Statistics: Posted by thagrol — Fri Jan 24, 2025 12:07 am