Welcome


Introduction

jtelnet is a java implementation of (very basic) telnet application. It works with Emacs version 19.34 but should work on almost any version that can run on NT. It is based heavily on The Java Telnet Application.

In order to use it you will need to have a Java Virtual Machine installed on your system. A Java Virtual Machine is needed to run Java programs.

There are now many JVM's available. I recomend using one of Sun's kit however jtelnet will work with _any_ JVM implementation. You can obtain the Java Development kit (JDK) or The Java Runtime Enviorment (JRE) from Sun. The JRE contains all this is required to execute java programs but no development tools. The JRE is a good but unless you plan on doing some development in Java.

Installation

Once you have installed and tested your new JVM you are ready to installed jtelnet. Download the distribution;

jtelnet distribution (zip)
jtelnet (tarred and gzipped

All the .class files from the archive need to be placed within your $CLASSPATH. The CLASSPATH is how java knows where to find its classes. A sample installation follows;

If I installed the JDK in C:\JDK1.1.3 I would do the following;
verify that my $CLASSPATH has an entry for C:\JDK1.1.3\LIB. An example CLASSPATH might be CLASSPATH=C:\JDK1.1.3\LIB\classes.zip;C:\JDK1.1.3\LIB. The final entry tells it to look for .class files in C:\JDK1.1.3\LIB.

Next copy the file jtelnet.el into a directory visible in your load-path. You will need to set the following variables in your ~/.emacs


(defvar jtelnet-java-path nil
  "Path to your favorite Java Interpreter (including the FULL name of the 
executable.")

(defvar jtelnet-class-arg nil
  "The command line option that specifies a classpath directory for a particular 
VM.  The Sun JDK uses -classpath and the JRE uses -cp.")

(defvar jtelnet-class-path nil
  "Your $CLASSPATH enviorment variable.  Add the directory where you installed
the jtelnet.class files to $CLASSPATH.  Or you can just place the jtelnet.class
files somewhere within your $CLASSPATH and leave it at that."
)

(defvar jtelnet-program "jtelnet"
  "Name of the jtelnet application.")
Load jtelnet.el and you should be ready. Type M-x telnet to give it a try.

I've included my settings at the end here for reference.

(require 'jtelnet)

(setq jtelnet-java-path "d:/lib/jdk1.1.3/bin/java.exe")
(setq jtelnet-class-arg "-classpath")
(setq jtelnet-class-path "d:/lib/jdk1.1.3/lib/classes.zip;d:/usr/lib/classes")

Please report bugs, suggestions, etc... to Me (Ivan).
This Website provided by my employer WatchIt Entertainment.