I'm very new to Java, but a seasoned C programmer. I wrote very simple multi-threaded client-server chat program. It works perfectly once in NetBeans, but after the server makes a new thread to interact with the client, the parent thread quits listening.
I figured this was a problem that would be easier to debug from outside the IDE. I tried to run the class file NB created, but I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Assignment1
I'm sure this is just something easy I'm missing. I googled a little and read something about the CLASSPATH env variable. I echo'd mine and it wasn't set.
Does that sound like it could be the problem? What should it be set to on Linux with standard NB and Java installation?
I figured this was a problem that would be easier to debug from outside the IDE. I tried to run the class file NB created, but I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Assignment1
I'm sure this is just something easy I'm missing. I googled a little and read something about the CLASSPATH env variable. I echo'd mine and it wasn't set.
Does that sound like it could be the problem? What should it be set to on Linux with standard NB and Java installation?