http://bugs.winehq.org/show_bug.cgi?id=5446
Summary: Get a BindException opening a server socket from java Product: Wine Version: 0.9.2. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: des@icandriveatractor.com
I found this problem running the Buffalow LinkTheater application under Linux. When I run the app a java.net.BindException is thrown while trying to open a listening socket for HSQLDB. So I made a simple test java program and found the same problem. It tries to open a ServerSocket on a given port. It runs fine under the JVM but not with wine. So the following command works fine:
java com.betplan.giles.tool.TestServerSocket <port>
But when I do:
wine java com.betplan.giles.tool.TestServerSocket <port>
the following exception is thrown:
Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind
I've pasted the sample code below and I tested it using java version 1.5.0_07
import java.net.ServerSocket; import java.net.Socket; import java.io.*;
public class TestServerSocket { public TestServerSocket( int port ) throws IOException { System.out.println("Creating new server socket on port: " + port); ServerSocket serverSocket = new ServerSocket(port); }
public static void main( String[] args ) throws IOException { new TestServerSocket(Integer.parseInt(args[0])); } }