Menu

#2 error when compiling sample class Simple2Shell

open
nobody
None
5
2005-12-25
2005-12-25
Jones
No

I'm trying to compile the Simple2Shell sample class
(second one found here:
http://telnetd.sourceforge.net/deployment/shell_tutorial.html#The+Full+Example
)

I had to make some slight modifications to fix some
errors, I'll detail the modifications here:

Changed this:
import net.wimpi.telnetd.event.ConnectionEvent;
to this:
import net.wimpi.telnetd.net.ConnectionEvent;

Added this import:
import net.wimpi.telnetd.shell.Shell;

I also renamed the enum var to enumt, Java seems to
think enum is a keyword & cannot be used as an identifier.

However now I'm getting this error, which I need help with:

[root@localhost td2]# javac -classpath telnetd.jar
s2s.java
s2s.java:12: s2s.shell.s2s is not abstract and does not
override abstract method
connectionBroken(net.wimpi.telnetd.net.ConnectionEvent)
in net.wimpi.telnetd.net.ConnectionListener
public class s2s
^
1 error
[root@localhost td2]#

Any suggestions would be appreciated.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB