question

ramarb avatar image
ramarb asked ramarb posted

IO Exception in swing client

In Swing application, I have to click a menuitem which invokes Telnet window to our device.

It used to work earlier, but it throws some exception, see attachment, in application and telnet console does not open now.

Any comments?

Thanks.

Message Edited by BethanyW on 07-09-2009 10:12 AM
iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted
The IO exception is being thrown by your application because it is trying to launch "xterm" application by using Java Process APIs. Most likely, it is not finding "xterm" in PATH. If it works from your application without iTest (if your application is being launched from the same shell as iTest), then somehow the PATH is changing when it is being launched using iTest. I would first make sure that PATH in the shell from which iTest is being launched contains xterm. You can confirm this using "which xterm" command.
3 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ramarb avatar image ramarb commented ·

which xterm gives me '/usr/openwin/bin/xterm' here...

0 Likes 0 ·
KumarS avatar image KumarS ramarb commented ·
Did you launch iTest from a shell which where xterm is in the PATH?
0 Likes 0 ·
ramarb avatar image ramarb KumarS commented ·

Setting xterm in PATH variable fixed the issue.

Thanks Kumar!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.