VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
X11 error when trying to run a java program (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: X11 error when trying to run a java program
#21
X11 error when trying to run a java program 14 Years, 9 Months ago  
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.<clinit>(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.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at javax.swing.JFrame.<init>(JFrame.java:198)
at Logic.<init>(Logic.java:1463)
at Logic.main(Logic.java:1663)

is their anything that can be done?

Bert

[ March 03, 2006, 01:22 PM: Message edited by: Brian T. Pence ]
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#22
Re: X11 error when trying to run a java program 14 Years, 9 Months ago  
Are you using Telnet or SSH?

Where do you expect the X client to display? Are you running an X server on your PC?
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#23
Re: X11 error when trying to run a java program 14 Years, 9 Months ago  
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.
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#24
Re: X11 error when trying to run a java program 14 Years, 9 Months ago  
First, you must be running an X server on your PC (Exceed, Reflections, XWin32) See www.xwin32.com 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.
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#25
Re: X11 error when trying to run a java program 14 Years, 9 Months ago  
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.
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#26
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
These are X issues and don't really have anything to do with AbsoluteTelnet. Try www.xwin32.com 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
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#27
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
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.
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#28
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
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
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#29
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
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
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#30
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
Found it

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

Will do.
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#31
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
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.
bblink (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#32
Re: X11 error when trying to run a java program 14 Years, 8 Months ago  
Thanks for the followup!

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top