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.