Bookmark Topic Watch Topic
  • New Topic

xserver  RSS feed

 
S Shehab
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

Please i need help badly , i'm using HP unix and i wanna to debug java code with eclipse so i installed eclipse , but when i type xclock command on the unix to test the xserver this message occurs " Error: Can't open display: MY IP" ,i'm connecting with Putty ,$DISPLAY was set , using on windows Xming software..

PS: excuse my poor knowleage because this is the 1st time i do this..
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't start another topic when you already have one under discussion. It causes confusion and duplication of effort as the community tries to help everyone.
CarefullyChooseOneForum
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
You may need to use xhost in the local environment to allow the remote XServer to connect to it.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
I've recently used Xming on my Windows computer to be able to connect to my Linux computer and run X programs on Windows.

First, you need to download and install Xming and the Xming tools and clients. Then you enter commands in a Windows command prompt:

Note, 192.168.0.3 is the IP address of the Unix computer which you want to give access to your Windows computer. Ofcourse you'll need to put in the right IP address here.

Then you connect to the Unix computer with putty and enter commands like this:

Note, 192.168.0.2 is the IP address of your Windows computer here. After this you should be able to run X windows programs via Putty and they should appear on your Windows desktop.

Read the Xming documentation.

You're probably doing this because you want to debug a Java program running on the Unix computer, as you explained in your other topic. Instead of doing it like this with Xming, you could try remote debugging, as Joe Ess explains in your other topic. Then you just run NetBeans locally on your Windows machine and connect to the Java software running on the Unix computer with your debugger.
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Don't forget the essential step of installing Xwindows on the server. Sherif mentions in the other topic that he doesn't have it.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's discuss this further in your other thread. Please don't crosspost the same question to multiple forums.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!