#Can I run my Javafx GUI in linux vm without hardware acceleration?

1 messages · Page 1 of 1 (latest)

empty orbit
#

I tried running my JavaFX GUI in a linux VM without hardware acceleration. It did not start giving me an error message in the lines of 'pipeline not found'. Reading oracle's doc they state JavaFX uses Java2D and it should still work. Was this error message related to Java2D? Is Java2D something that I should install manually to make my GUI work? I would assume that's included in the javafx library which was added as a dependency to the GUI.

Graphics Support
For JavaFX applications to take advantage of the new hardware acceleration pipeline provided by JavaFX, your system must feature one of a wide range of GPUs currently available in the market. Table 1 lists the graphics cards that have been tested with JavaFX. If your system does not support hardware acceleration, then JavaFX uses the Java2D software pipeline.
tribal cairnBOT
#

<@&987246487241105418> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
I tried running my GUI in linux without hardware acceleration. It did not start giving me an error message in the lines of 'pipeline not found'. Reading oracle's doc they state it uses Java2D and it will still work. Was this error message related to Java2

halted due to lack of hardware acceleration'. JavaFX requires hardware acceleration for optimal performance, so running it without it may result in errors or poor performance.

However, you can try using the software rendering pipeline as a fallback option. This can be done by setting the system property "-Dprism.order=sw" when launching your JavaFX application. Keep in mind that this may still result in reduced performance compared to hardware acceleration.

Alternatively, you could consider using Swing instead of JavaFX for your GUI. Swing is a lightweight GUI toolkit that does not rely on hardware acceleration, making it a suitable choice for running in environments without this capability.

In conclusion, while running JavaFX without hardware acceleration may be possible with software rendering options, it is not recommended due to potential performance issues. Consider using Swing as an alternative if hardware acceleration is not available on your Linux VM.

empty orbit
#

Should add to that, I'm not using hardware acceleration on my linux vm because I can't get past the log-in without freezing.