Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Sun Java Communications API for VJ++

Status
Not open for further replies.

rbobbitt

Programmer
Aug 17, 2000
566
US
Hello All,

I've downloaded the Sun Java Communications API and am at a bit of a loss on
how to install it for use with VJ++. It comes with three key files:
javax.comm.properties, comm.jar and win32com.dll. Below are the
instructions for installing the files for use with Sun's JDK.

Any help much appreciated.

Unzip the file javacomm20-win32.zip. This will produce a hierarchy with a
top level directory commapi.
The examples in this document assume that you have unzipped the
javacomm20-win32.zip file in your C: partition and your JDK installation is
in C:\jdk1.1.6. If you have installed JDK in an other location or unzipped
javacomm20-win32.zip in an other location modify the example commands
appropriately.

If you are installing the Java communications API into a JRE (Java runtime
environment) follow the same instructions as for the JDK except where noted.
See the additional instructions for running using the JRE.

Copy win32com.dll to your <JDK>\bin directory.

C:\>copy c:\commapi\win32com.dll to c:\jdk1.1.6\bin

Copy comm.jar to your <JDK>\lib directory.

C:\>copy c:\commapi\comm.jar c:\jdk1.1.6\lib

Copy javax.comm.properties to your <JDK>\lib directory.

C:\>copy c:\commapi\javax.comm.properties c:\jdk1.1.6\lib
The javax.comm.properties file must be installed. If it is not, no ports
will be found by the system.

Add comm.jar to your classpath (do not do this step for a JRE installation).
If you don't have a classpath defined:

C:\>set CLASSPATH=c:\jdk1.1.6\lib\comm.jar

If you already have a classpath defined:

C:\>set CLASSPATH=c:\jdk1.1.6\lib\comm.jar;%classpath%




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top