Java IOException error when running from DOS box

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mikeattwood
Posts: 3
Joined: Thu Aug 14, 2008 4:29 pm

Java IOException error when running from DOS box

Post by mikeattwood »

I have a Java program that creates a Socket (Socket s = new Socket(servers[userNo],25);) and this ran OK from a DOS box using jdk1.6.0_01 but since updating to jdk1.6.0_07 and recompiling it runs OK from TextPad but produces an IOException when run from a DOS box
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

details ....

Post by Nicholas Jordan »

what does exception.getMessage() say
mikeattwood
Posts: 3
Joined: Thu Aug 14, 2008 4:29 pm

Post by mikeattwood »

The exception is connection refused: connect
mikeattwood
Posts: 3
Joined: Thu Aug 14, 2008 4:29 pm

Problem sorted

Post by mikeattwood »

The problem was caused by the Norton firewall.
I have sorted it but I am still puzzled as to why it should work OK from TextPad and not from a DOS box.
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

possibly lengthy

Post by Nicholas Jordan »

I have been working on this, let us say for the purpose of clarifiying: "uh, non-obvious" It can get deep in a hurry.

http://www.nabble.com/ide-password-does ... 14104.html

http://www.codeproject.com/w2k/junction ... e_Solution

That is all I have so far, let me know if you want to work it.
Post Reply