Forum

X11 error when tryi...
 
Notifications
Clear all

X11 error when trying to run a java program

0 Posts
2 Users
0 Reactions
406 Views
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Running Absolute Telnet from WinXP HE and connected to Unix remote site. Trying yo run a java program & get this error:-

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)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.(Window.java:275)
at java.awt.Frame.(Frame.java:401)
at javax.swing.JFrame.(JFrame.java:198)
at Logic.(Logic.java:1463)
at Logic.main(Logic.java:1663)

is their anything that can be done?

Bert

[size=1][ March 03, 2006, 01:22 PM: Message edited by: Brian T. Pence ][/size]


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

Are you using Telnet or SSH?

Where do you expect the X client to display? Are you running an X server on your PC?


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Sorry for the lack of detail.

Are you using Telnet or SSH?

SSH2

Where do you expect the X client to display? Are you running an X server on your PC?

On my PC. I am not running X server.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

First, you must be running an X server on your PC (Exceed, Reflections, XWin32) See [url= http://www.xwin32.com ]www.xwin32.com[/url] for a trial version of their product.

Second, make sure you have X forwarding enabled in Absolute. Check Options->Properties->Connection->SSH2->Forwarding. If it is not enabled, enable it and disconnect/reconnect to activate it in the current session.

Third, check your DISPLAY variable. It should look something like this:

localhost:10.0

The SSH server will set this value for you at login time. Any attempt to change it will result in failure. Check you profile and startup scripts to be sure that you're not setting this manually somewhere. ':0.0' is wrong and refers to the X display on the server, not the client.

If the DISPLAY is either not set or set improperly, then it's possible your host does not allow X forwarding or you are overriding it somewhere.

Hope this helps.


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Installed a free program "X Deep".

Set X Forwarding (i.e. Display remote X applications on local X server" in Absolute Telnet.

Started X Deep and started java program, Absolute Telnet, and got the following errors:-

(1) In Unix - Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct

(2) In X Deep - java program screen appears but cannot do anything with it? Does not react to mouse clicks.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

These are X issues and don't really have anything to do with AbsoluteTelnet. Try [url= http://www.xwin32.com ]www.xwin32.com[/url] to see if it has a better behavior. It is not free, but it does have a period of time it can be used as a demo. At least you can see if your issue is related to the X server or the SSH client.

Brian


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

It works.

The problem is that the responses are very slow about five seconds for a mouse click to elicit a response. Don't ask me why I thought sitting there & waiting was a good idea?

Both X-Deep & X-Win32 work. X-Win32 slightly more sophisticated as you don't get anX-server screen the application just suddenly appears, hence X-win32 fooled me the first time as the program screen takes some time to appear.

So all is hunky dory.

Thank you.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

The response time can be slow, depending on a number of factors. If you're going across a dialup networking connection, you should expect some lag.

What version of Absolute are you using?

Some other things to try:

1. Compare speed using SSH1 vs. SSH2.
2. Compare speed with varying levels of compressing (including 'off').
3. If you're using a version prior to 3.80, try upgrading to at least 3.80 or above. There was an X11 speed improvement in 3.80 that you'll want.

Brian


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Originally posted by Brian T. Pence:
The response time can be slow, depending on a number of factors. If you're going across a dialup networking connection, you should expect some lag.

What version of Absolute are you using?

V4.01

Some other things to try:

1. Compare speed using SSH1 vs. SSH2.

NND - No noticable difference.

2. Compare speed with varying levels of compressing (including 'off').

I use a Cable Modem connecting to the Internet via a D-Link router at about 985 kbps.

If I can change compression then I can't find it.

3. If you're using a version prior to 3.80, try upgrading to at least 3.80 or above. There was an X11 speed improvement in 3.80 that you'll want.

see above I use the latest version.

Brian


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Found it

2. Compare speed with varying levels of compressing (including 'off').

Will do.


   
ReplyQuote
(@bblink)
Active Member
Joined: 23 years ago
Posts: 7
Topic starter  

Originally posted by Brian T. Pence:
The response time can be slow, depending on a number of factors. If you're going across a dialup networking connection, you should expect some lag.

Connection is Broadband

What version of Absolute are you using?

4.01

Some other things to try:

1. Compare speed using SSH1 vs. SSH2.

Not noticable difference

2. Compare speed with varying levels of compressing (including 'off').

Not noticable difference

Brian

The only niticable difference is Time of Day, i.e. the number of users at the University end. Given Aussie Universities are well into 1st Semester 2006 Tutorials & 1st Assignments mean heavy use by students.

Anyway my X Server works albeit slowly so I consider this thread closed.

Thank you for your help.


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

Thanks for the followup!

Brian


   
ReplyQuote
Share: