brunamulinari
Posts: 14
Joined: Thu Aug 24, 2017 12:12 pm

Erro: "No X11 DISPLAY variable was set..."

Mon Aug 28, 2017 1:14 pm

Olá,

Estou fazendo acesso remoto a raspberry pi 2 por meio do NetBeans. O acesso funciona perfeitamente para aplicações que não utilizam interface gráfica. Ao tentar executar a criação de uma Jframe o programa me retorna:

"No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:189)
at janelas.ConfiguracaoJanela.<init>(ConfiguracaoJanela.java:14)
at javaapplication1.JavaApplication1.main(JavaApplication1.java:37)"

Alguém sabe como fazer acesso remoto na raspberry que permita GUI usando NetBeans?

User avatar
topguy
Posts: 4540
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Erro: "No X11 DISPLAY variable was set..."

Mon Aug 28, 2017 1:16 pm

Code: Select all

export DISPLAY=:0.0

brunamulinari
Posts: 14
Joined: Thu Aug 24, 2017 12:12 pm

Re: Erro: "No X11 DISPLAY variable was set..."

Mon Aug 28, 2017 1:36 pm

Topguy já tentei e o erro continua..

Return to “Português”

Who is online

Users browsing this forum: No registered users and 4 guests