- What you need to know- helpful listing of material you are expected to know
Lots of problems for new and more experienced users with the
classpath. See classpath.html
info and hopefully it will solve your problems.
Java Serial CommAPI
Update Sept. 2008Sun have dicontinued support of the Comm API for the Windows platform.
A possible alternative is available at rxtx.org see:
A very good chapter on Java Serial comms is available @ http://www.syngress.com/book_catalog/177_lego_JAVA/sample.htm . This is from the book "Programming Lego Mindstorms With Java" .
Another useful web site is @ http://www.particle.kth.se/~lindsey/JavaCourse/Book/chapter23.html
had some odd problems with the Java CommAPI.
some pointers to a solution that worked for me.
- I tried to run apps that
were located on a seperate partition
(e.g. D:\) but I wasunable to open (or list) ports.
if I moved the code to the C:\ drive it worked.
- Couldn't gat a port
allocated to my apps when I was developing
them in Eclipse but outside Eclipse
they ran OK (on thje C:\ drive)
[Running Win2K and [JDK] represent the directory path to the Java
Development Kit eg [JDK] == c:\jdk1.4.1\]
Synopsis [For a full version with explanations see here]
Make sure that the PATH environment
written such that the '<JDK>\bin'directory is before the
[This means that
you know that this is the version of java that runs and not
'java.exe' in c:\WINNT\system]
In development (i.e. college) useful jar
java classes can be placed in the [JDK]\jre\lib\ext directory.
This is atomatically searched by
'<JDK>\bin\java.exe' before (!) any other location, even
specified using the CLASSPATH
or using the '-classpath' switch
For production code to be really sure
that you will
see the required classes use the '-classpath' switch when running the
For the CommAPI (Please note these are
not the same
as Sun's recommendations ... but it works :) )
extract the ziped
file you downloaded from Sun into some directory. Then find the files
Copy the file
'win32com.dll' to the [JDK]\bin directory.
'comm.jar' to [JDK]\jre\lib\ext directory
Copy the file
'javax.comm.properties' to the directory [JDK]\jre\lib.
I also found the
at the Java
Tech site [Note they do not
install to the
<JDK>/lib or <JDK>/bin
directories at all! ]
J2SE installation does not
include the javax.comm
set of files. You must download and install it separately. The Sun
site currently provides files suitable for Windows platforms and
Solaris. See the resources section below for links to sites that
for Linux .
example, for MS Windows follow
- Download and unpack
- Place the win32com.dll
directory (or the \jre\bin
subdirectory of your current J2SDK directory.)
- Place the comm.jar
- Place the javax.comm.properties
- Do not alter the CLASSPATH.
- My experience of setting up
the TOMCAT servlet container on a
Windows 2000 system available here.
It also has details of how you subsequently deploy your servlets.
- Marty Hall (author of
Servlets and Java Server Pages, Core) has a
lot of detail on setting up version 3.2 of Tomcat here.
DOS Batch Files
A good introduction and
advanced tutorial from Cay Horstmann is available. The intro gives you
some basic info and the advanced shows you how to write batch files [a
Hopkins Uni - Java
programming resources | JavaWorld.com
JVM (kaffe) | Java
Assembly with jasmin |