Ok. Thanks. I usually use a main() like this for testing client/server code in a single JVM:
public static void main(String[] args) {
Thread t1 = new Thread(new Runnable() {
...
Type: Posts; User: Norm
Ok. Thanks. I usually use a main() like this for testing client/server code in a single JVM:
public static void main(String[] args) {
Thread t1 = new Thread(new Runnable() {
...
Then both programs were executed on the same PC which was using Win7.
Were the server and the client classes executed with their own JVM
or were they both executed in the same JVM from a third...
Can you explain where, how and in what order each program is being executed?
Have you tried putting the server on WinXP?
I have my own HTTP server I use for testing. It is accessible when run on XP but not on Win7.
have you tried the server on another OS like WinXP to see if there is a problem with Win7?
Please explain what the problem is. What happens when you execute the code?
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Please explain. Copy the full contents of the console and paste...