What steps will reproduce the problem?
1. Make sure you don't have any process listening on port 5900 and 5901.
2. Open command prompt and run portfwd like:
java -classpath "portforward.jar;lib\commons-logging.jar" org.enterprisepower.net.portforward.Forwarder 5900 localhost:5901
3. On another command prompt, run:
telnet localhost 5900
4. portfwd shows an exception but stays in a non-working condition.
What is the expected output? What do you see instead?
Portfwd should exit after an error like this.
What version of the product are you using? On what operating system?
I did a fresh svn checkout this morning (2012-09-12) on Windows XP using Java build 1.6.0_35-b10.
Please provide any additional information below.
I am attaching a patch to your code that solves the problem for me.
Thank you for creating this tool. It saved my life :)