Is it possible to use / open a graphical interface in Eclipse Che?

I recently worked with Eclipse Che and have the task of importing a Java project that opens a graphical interface in it (for example, a simple Swing / SWT calculator).

I use the Java CentOS stack, importing .jar files, etc., this is not a problem, but I get the variable “No X11 DISPLAY”, but this program performed an operation requiring this. ”Error.

Obviously, I found a lot of threads about this error, but I just wanted to ask if it is even possible to open the GUI in an IDE web environment like Eclipse Che before spending hours trying to fix this error when it is not even possible.

Perhaps some of you have already tried this, and I have a solution / tip or smth for me.

edit: found a video that answered my question. https://www.youtube.com/watch?v=AjgSp0dkxxU

Thank you anyway.

+4
source share
2 answers

This will help you - https://eclipse-che.readme.io/docs/che-and-swing

You need to use the correct stack

+2
source

You need to set the displayed variable. The way I did this was to modify the run command to install it immediately before other commands.

The command I use is:

export DISPLAY=:0.0

Also note that this worked for a while for me, but accidentally stopped working a few days ago, so please let me know if you manage to get it working.

0
source

Source: https://habr.com/ru/post/1656238/


All Articles