• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run an application in unix and display in windows  RSS feed

 
Al Badani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
i have a java program that works in windows perfect. when i try to run in unix and i am using telnet to my school account, it should display a GUI but i always get the following error:
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

any help please,
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a unix question/problem. If you are running it through telnet, you can't just popup a window. With telnet, all you have is a command line. There is a way to tell unix/X-Windows to popup the windows on a remote device but I can't tell you how. Do some searching on unix sites/boards for unix/X-windows help. This is not a java problem. It's like running a computer with just DOS installed and wondering why your java app won't pop up a window (although for unix there is a way to make it work)
brian
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you want is a remote X session. Check out this HOW-TO. You'll need an X server for Windows for the local display. If you are cheap, Cygwin is a free *nix environment for Windows that will run XFree.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!