I have created a telnet chat server in Java. To connect to your server, just type:
telnet [your ip address]
in command prompt/terminal/whatever you call it.
How to set up a server
1) Download JTelnetChat.jar to an empty folder.
2) Type the following in notepad and save it as a .bat file in the same folder:
@echo off java -jar JTelnetChat.jar
3) Run your new file
4) Try it out
5) Stop your server and edit motd.txt
6) (If you want) edit the banlist (IP addresses, delimit with whatever you want.)
7) Run your server again.
Downloading
1) JTelnetChat.jar
Source:
1) JTelnetChat.zip
Last edited by GeonoTRON2000 (2012-12-09 18:31:04)
Offline
DigiTechs wrote:
Nice. But wouldn't there be a problem with the fact that telnet easily disconnects?
How would that be a problem?
Offline
This is really cool...could you post the source file?
Offline
ohaiderstudios wrote:
This is really cool...could you post the source file?
Sure!
Offline
Hmm... doesn't work for me.
Exception in thread "main" java.lang.UnsupportedClassVersionError: JTelnetChat : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Running on Mac OS X Snow Leapord 10.6.8.
Last edited by zippynk (2012-12-09 18:32:37)
Offline
zippynk wrote:
Hmm... doesn't work for me.
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: JTelnetChat : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)Running on Mac OS X Snow Leapord 10.6.8.
Try recompiling from the source... that seems like a compiler error rather than an error on my end...
Offline
zippynk wrote:
Hmm... doesn't work for me.
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: JTelnetChat : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)Running on Mac OS X Snow Leapord 10.6.8.
You need to update to Java 7 or compile it for Java 6.
Offline
Cool.
DigiTechs wrote:
Nice. But wouldn't there be a problem with the fact that telnet easily disconnects?
I play a text-based game with telnet once and it kept disconnecting every minute or two. I think it was actually the first or one of the first telnet Multi-User Dungeons or something like that.
Last edited by nathanprocks (2012-12-11 03:48:38)
Offline
MathWizz wrote:
zippynk wrote:
Hmm... doesn't work for me.
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: JTelnetChat : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)Running on Mac OS X Snow Leapord 10.6.8.
You need to update to Java 7 or compile it for Java 6.
So that's what that means! That happened on my friend's computer once, too.
Offline