X11 display error in mendix cloud

0
Hi, I am trying to render a popup from java. On local host this works fine, but when I deploy to the cloud I am running into the following error: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) Is it possible to set this in the mendix cloud , or set a jvm parameter in the mendix cloud (-Djava.awt.headless=true)
asked
2 answers
2

You shouldn't be trying to display anything to the user from Java. In Mendix apps, the browser front-end runs in a browser and executes JavaScript code. The back-end server runs in a JVM and is capable of executing Java code.

So, your example is trying to display a pop-up on the web server in the Mendix cloud, instead of in a user's browser.

You should be using Mendix pages and microflows to display feedback to users.

answered
1

Did you try to trigger the pop-up with addTextMessageFeedback as described in this topic?

answered