[Rxtx] missing ParallelPort.java

Trent Jarvi tjarvi at qbang.org
Wed Oct 26 17:09:28 MDT 2005


On Wed, 26 Oct 2005, Trent Jarvi wrote:

> On Thu, 27 Oct 2005, Ákos Maróy wrote:
>
>> Trent Jarvi wrote:
>>> This and your next email concerning missing files suggest you are going
>>> about recreating rxtx 2.1 with rxtx 2.0.  The files you are missing are
>>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work
>>> with the files Sun provides.
>> 
>> but what are you suggesting? I did have the Sun-provided comm.jar
>> installed when I tried to compile rxtx...
>> 
>> 
>
>
> If you do jar -tf comm.jar you will see SerialPort.class.  Perhaps a package 
> name is not matching but there is no need to grab SerialPort.java from rxtx 
> 2.1.  In fact that will cause problems like you ran into.
>
> Make sure that comm.jar is indeed in your class.  Also check to make sure the 
> packages are matching.  RXTX 2.1 will put SerialPort.java in class gnu.io to 
> avoid conflicts with Sun's comm.jar.  This will cause problems as 
> SerialPort.class should be provided by Sun in package javax.comm with rxtx 
> 2.0.
>
> The same applies for ParallelPort.java


One more point.  Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while 
trying to compile 2.0.  This is a very common mistake and results in 
problems not unlike what you are experiencing.  The 2.0 and 2.1 versions 
while nearly identical in native code use different java packages 
resulting in incompatability.  RXTX 2.1 can not be in the javax.comm 
namespace because of the (current) Sun license.


More information about the Rxtx mailing list