Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4670

Advanced users • Java swing application without desktop does not start

$
0
0
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:

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)
and X-Server as well.

If I run the Java application without starting the GUI, it runs fine.

But when I start it with the GUI part, the output of X Server comes without error and then the screen flickers briefly and then the cursor flashes again.

Code:

startx java -jar MyApp.jar --
I have also tried to install and start Firefox as a test, which worked.

Hence the question if anyone else has an idea what I can try.

Statistics: Posted by jacoblange — Thu Jan 23, 2025 5:27 pm — Replies 0 — Views 3



Viewing all articles
Browse latest Browse all 4670

Trending Articles