MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Mathematica JLink and comm.javax.CommPortIdentifier

  • To: mathgroup at
  • Subject: [mg99011] Mathematica JLink and comm.javax.CommPortIdentifier
  • From: "Koehler, Charles" <ckoehler at>
  • Date: Fri, 24 Apr 2009 03:45:09 -0400 (EDT)

I would like to use JLink to perform serial communication functions with
Mathematica.  It appears that javacomm api for Windows is no longer
supported by Sun.  So as an alternative I am attempting to use RxTx as a
substitute.  When I attempt to run:

In[2]:= InstallJava[]
Out[2]= LinkObject["C:\Program Files\Wolfram
Research\Mathematica\7.0\SystemFiles\Java\Windows\bin\javaw" -classpath
"C:\Program Files\Wolfram
Research\Mathematica\7.0\SystemFiles\Links\JLink\JLink.jar" -Xmx256m
com.wolfram.jlink.Install -init "C:\Documents and
Settings\ckoehler\Local Settings\Temp\m19.tmp",4,4]

I assume that I have installed the rxtx dll and jar files in the correct

I receive the following error:

Java::excptn: A Java exception occurred:
java.lang.ClassNotFoundException: comm.javax.CommPortIdentifier
	at Method)
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClassInternal(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(

LoadJavaClass::fail: Java failed to load class
comm.javax.CommPortIdentifier. >>

I realize this is may not be the appropriate newsgroup for this, but the
only documentation I could find regarding Jlink is out of data.

Thanks for any direction you might be able to provide.

Chuck Koehler

  • Prev by Date: Re: Using the slider values in a Manipulate
  • Next by Date: Re: Help with a possible bug
  • Previous by thread: Re: Re: MatrixPlot with color range bar
  • Next by thread: Re: Mathematica JLink and comm.javax.CommPortIdentifier