Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant get socket example to work

Status
Not open for further replies.

harmmeijer

Programmer
Mar 1, 2001
869
CN
I am new to java so this might be a simple mistake I am making but I cannot seem to make an example work.


compiled the KnockKnockProtocol.java
put the KnockKnockProtocol.class in the classpath.
tried to compile the KnockKnockServer.java but get an error:

C:\j2sdk1.4.0_03\bin>javac code\KnockKnockServer.java
code\KnockKnockServer.java:28: cannot resolve symbol
symbol : class KnockKnockProtocol
location: class KnockKnockServer
KnockKnockProtocol kkp = new KnockKnockProtocol();
^
code\KnockKnockServer.java:28: cannot resolve symbol
symbol : class KnockKnockProtocol
location: class KnockKnockServer
KnockKnockProtocol kkp = new KnockKnockProtocol();
^
2 errors

The example does tell you how to run the program but there is nothing to run because the code won't compile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top