• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Commuincations API  RSS feed

 
Mark Mokris
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded and installed the Java Communications API according to the instructions. This API supposedly permits you to access COM ports from Java. I run the sample "BlackBox" program, and I receive "No Serial Ports Found!". Even though I have two.
This happens to be a Windows 98 system, and I have the JDK1.3.0_02. Is this API still viable? The docs talk about JDK1.1.6, so it has been around a while. Any ideas?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been a long while, but as I recall, the critical thing with the COMM API is getting it to read the properties file that tell it what to look for. If it can't find that file you get that symptom. It is definately a supported API.
Bill
 
Mark Mokris
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help. I got it to work. Actually I created a separate directory, copied commapt.jar as well as the "properties" file to it, set the CLASSPATH to it, and it worked. However, this is not what the README file says to do.
It is good to know that it is a supported API. Seems like it should be.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!