Trying to use javax comm api in Windows Environment

I am working on developing a module to dial a phone number in a Windows environment. This is to test a voicemail connection so it isn't, necessarily, calling a modem.
A couple of questions:
1) I found the javax comm api but it appears Sun has only provided a Solaris and Linux version - where would I find a Windows version?
2) I was planning on dialing a modem with the voicemail phone number (programmatically, of course). I, then, want to recognize response and react to it - possibly stopping only with seeing that the phone number answered (since I don't want to write voice recognition software). Am I on the right track?
Ed

I don't know of any devices named "/dev/term/a" - and that's both Linux and Solaris.

Similar Messages

  • Javax Comm API on linux

    Hi,
    I am using javax comm API on linux. I am using RXTX comm API release 1.4 that uses gnu.io.RXTXCommDriver on J2ME Personal Profile Runtime Environment for x86 Linux Version 1.0.
    When I try to open a serial port, I get javax.comm.NoSuchPortException. What could be the problem? Does the cvm not support comm API. Is there any alternate way?

    I am looking for one too.. i figured better would be to use JNI classes... but i havent yet implemented it.. mebbe that will cause even more problemos..
    please post here if you find smthing

  • How to use the COMM API in a JAR file

    I have developed an application, using the NetBeans IDE, to communicate with a modem over the COM1 serial port using the Java Comm API. The application works fine within the IDE, but when a JAR file is created and "double-clicked", the application launches correctly, but when the code is executed to "talk" over the COM1 serial port - nothing happens. No exceptions and no warnings are thrown. My environment is XP, SP1.
    The manifest file is as follows:
    Manifest-Version: 1.0
    Class-Path: ../j2sdk1.4.2/jre/lib/ext/TimerBean.jar ../j2sdk1.4.2/jre/
    lib/ext/AbsoluteLayout.jar ../j2sdk1.4.2/jre/lib/ext/comm.jar
    Created-By: NetBeans IDE
    Specified-By: Projects/TheApp/Files/TheApp.jarContent
    Main-Class: Main
    According to the Comm API installation instructions, the following files are copied:
    copy comm.jar \j2sdk1.4.2\jre\lib\ext
    copy wind32com.dll \j2sdk1.4.2\bin
    copy javax.comm.properties \j2sdk1.4.2\jre\lib
    I suspect it has something to do with the paths.
    Any help would be greatly appreciated. Thanks.

    Thanks for your input, but after trying what you suggested the problem still exists. I think your right to be suspicous of the javax.comm.properties file. The application, that worked in the IDE, exhibits the same behavoir as the JAR file if the javax.comm.properties file is removed from the ../jre/lib directory. In other words it compiles correctly in the IDE, but when executed, nothing happens when the code that "talks" to the serial port is run.
    I've tried moving the javax.comm.properties file into the working directory. Also, the CLASSPATH and PATH system variables were modified to include the path to javax.comm.properties.
    If you have anymore ideas, please let me know.
    Thanks.

  • Javax comm api

    hi all,
    I tend to install the javax comm api on my windows98 se but it seem that I cant find the win32com.dll in the unzipped file.
    I downloaded the javax.comm 3.0, update 1 for Linux plateform, since there is no version for the windows.
    I have tried to enable the view every folder in my view tool but cant seem to work, I still cant see the win32com.dll file.
    Regards,
    Rejina Choi

    hi , I having problem downloading this file ""Comm3.0_u1_linux.zip""" and I need it urgently could someone give me a link where I can download it. Sun say that "Product Not Found The product you requested is not available at this time".

  • Problem in Accessing serial port using java comm Api

    I have installed java comm Api in my pc.
    i have gone through the instalation instruction which comes on this package.
    I have done the instalation like this
    Copy win32com.dll to my <JDK>\bin directory.
    Copy comm.jar to my <JDK>\lib directory.
    Copy javax.comm.properties to my <JDK>\lib directory.
    and restart the system.
    But when i run the BlackBox , it is giving me message
    "serial port not found".
    Can any one tell me , what is the exact problem ?

    I'm not sure what you mean by BlackBox, but I have used the COMM api extensively.
    The majority of problems is that the api cannot see the serial port (which is what you are describing) and this is caused by incorrect placing of the javax.comm.properties file.
    As well as <JDK>\lib, try putting it into <JRE>\lib as well. That has often solved problems on my setup.

  • I'm trying to use iTunes sharing between my windows computers. My computer playlist is showing up on the sidebar but there is no content with it. Why won't the music from my other computer show up?

    I'm trying to use iTunes sharing between my windows computers. My computer playlist is showing up on the sidebar but there is no content with it. Why won't the music from my other computer show up?

    The computer has to be authorized for the account that purcchased the media.
    What error message are you getting when you try to lauthorize the computer for that account?
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • Problem using Javax.Mail API

    Hi Experts,
    I am using Javax.mail API to send an email through java application. But i am facing an issue when i am deploying the java application in SAP WAS.
    I have assigned values in SMTP Host ,Port, and InternetAddress and deployed to WAS. But when i deploy this java class again in WAS with changing the values for SMTP Host ,Port and InternetAddress and putting in Properties object ,its always picking the values set at first time.
    Can anyone tell me whats wrong with following code .
    Properties prpt = new Properties();
    if (host == null)
    host=token[0];
    prpt.put("mail.smtp.host",host);
    prpt.put("mail.smtp.sendpartial", "true");
    if (port == null)
    port=token[1];
    prpt.put("mail.smtp.port", port);
    Session session1=Session.getDefaultInstance(prpt, null);
    MimeMessage message=new MimeMessage(session1);
    message.setFrom(new InternetAddress(emailId"));
    Thanks in advance.

    Hi
    I hope follow similar answered thread  will help you.
    1. [Javamail Client Service   |Javamail Client Service;
    2.[Sending Email   |Sending Email;
    Best Regard
    Satish Kumar

  • Comm api for windows

    I need to access comm serial port using java.
    I downloaded the comm api for generic. The downloaded file comm2.0.3.zip contains comm.jar only. It does not have window dll that is mentioned in other forums.
    Does it support windows platform? where to get additional files for windows?
    Why is there no samples/docs in the release download?
    Thanks,
    Dave

    You're incorrect. Oracle or rather Sun did provide a Windows port but they withdrew it as Microsoft kept changing the underlying system APIs. There are other implementations of it, such as RxTx.

  • Comm api for windows platform

    I want to use comm api with JSP on windows platform.
    I am using Tomcat 5.0 for running JSP.
    On Sun's site comm api available only for solaris and linux platforms.
    what should i do?
    I also want to know prefered settings for configuring comm api with Tomcat. i.e.Where should i put appropriate comm API file in Tomcat?
    Please also mention the necessary settings for classpath.
    Thanks for help in advance.

    Version 2.0 of Java Communications was available for Windows, though I can't see how to download it from the Sun web site now...

  • Help...problems using java comm API

    Hi all
    im using Fedora Core and in order to list all the available serial ports for my computer i'm using the classic program TestEnumeration, but when running from jbuilder 2005 not from shell i received the following errors:
    Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
    Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
    Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
    Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
    warning: no ports found - make sure javax.comm.properties file is found
    i have followed all the instruction to install comm API but i received the same error i need help plz if someone can
    thx

    import java.io.*;
    import java.util.*;
    import javax.comm.*;
    import java.lang.*;
    import java.Buff.*;
    public class SimpleRead implements Runnable, SerialPortEventListener
         static CommPortIdentifier portId;
         static Enumeration portList;
         InputStream inputStream;
         SerialPort serialPort;
         Thread readThread;
         public static void main(String[] args)
         {//System.out.println("hello");
              portList = CommPortIdentifier.getPortIdentifiers();
              while (portList.hasMoreElements())
                   portId = (CommPortIdentifier) portList.nextElement();
                   if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
              if (portId.getName().equals("COM1"))
                   // if (portId.getName().equals("/dev/term/a")) {
              SimpleRead reader = new SimpleRead();
         public SimpleRead()
         try
              serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
         catch (PortInUseException e)
                                  System.out.println(e);
         try
         inputStream = serialPort.getInputStream();
         catch (IOException e)
                        System.out.println(e);
                   try
    serialPort.addEventListener(this);
                   catch (TooManyListenersException e)
                        System.out.println(e);
         serialPort.notifyOnDataAvailable(true);
         try
         serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
              catch (UnsupportedCommOperationException e)
                        System.out.println(e);
    try {
    out = new OutputStreamWriter(serialPort.getOutputStream());
    out.write("ATQ0V1E0");
    out.flush();
    out.write("ATQ0V1E0");
    Out.close();
    //System.out.println("ATQ0V1E0");
    catch (IOException e) {}
    try {
    int line;
    int result ;
    InputStream = serialPort.getInputStream();
    int num= inputStream.available();
    InputStreamReader reader = new InputStreamReader(inputStream);
    System.out.println(reader.ready());
    while ((line = reader.read()) <= 0)
    result =reader.read();
    System.out.println("Success " + result);
    reader.close();
    catch (IOException e) {}
    readThread = new Thread(this);
    readThread.start();
    try {
    OutputStream = SerialPort.getOutputStream();
    catch (IOException e) {}
              System.out.println("ATQ0V1E0");
    public void run()
         try
    Thread.sleep(500);
    catch (InterruptedException e)
                   System.out.println(e);
    public void serialEvent(SerialPortEvent event)
    switch(event.getEventType())
    case SerialPortEvent.BI:
    case SerialPortEvent.OE:
    case SerialPortEvent.FE:
    case SerialPortEvent.PE:
    case SerialPortEvent.CD:
    case SerialPortEvent.CTS:
    case SerialPortEvent.DSR:
    case SerialPortEvent.RI:
    case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
    break;
    case SerialPortEvent.DATA_AVAILABLE:
    byte[] readBuffer = new byte[20];
    try
    while (inputStream.available() > 0)
    int numBytes = inputStream.read(readBuffer);
    System.out.print(new String(readBuffer));
    catch (IOException e)
                        System.out.println(e);
    break;
    hi friends am getting these errors
    C:\programs>javac SimpleRead.java
    SimpleRead.java:115: illegal start of expression
    public void run()
    ^
    SimpleRead.java:159: ';' expected
    ^
    2 errors
    please help me....
    its very urgent....this is the first program of mine.... am so tensed..
    i should finish this soon... please help me...
    this is my mail ID
    [email protected]

  • Javax comm api tutorial

    Hi!
    I've gone through sun's examples on how to use comm api.
    Are there any detailed tutorials anywhere which one can use to learn the intricacies of the comm api? This is because one can go through the code or even the javadoc and get already written code to run, but a good detailed tutorial somewhere always helps a great deal to really plunge into the essence of the technology in use.
    I'm an undergrad student and my aim is to send AT commands to a cell phone using a JAVA applet as well as receive responses from it through the JAVA applet.
    Thanks alot for all your help.

    This is a very well commented piece of code and is a good tutorial for the javx.comm api!
    http://discussion.forum.nokia.com/forum/showthread.php?s=ffbe2f2bf1e0d951ec1a0867c9470bd0&threadid=27929&highlight=%2Ajavax.comm%2A

  • During startup, googleleads / Doubleclick is trying to use my keyboard API

    WTF is going on here?
    Macintosh CONSOLE MESSAGES:
    6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:08:01 PM [0x0-0x1c01c].org.mozilla.firefox[172] NOTE: child process received `Goodbye', closing down
    6/2/14 9:08:30 PM [0x0-0x1f01f].org.mozilla.firefox[197] Background starting...
    6/2/14 9:14:04 PM [0x0-0x1f01f].org.mozilla.firefox[197] NOTE: child process received `Goodbye', closing down
    6/2/14 9:18:33 PM com.apple.launchd.peruser.501[114] ([0x0-0x1f01f].org.mozilla.firefox[197]) Exited: Terminated
    6/2/14 9:19:04 PM [0x0-0x28028].org.mozilla.firefox[232] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:19:04 PM [0x0-0x28028].org.mozilla.firefox[232] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:19:04 PM [0x0-0x28028].org.mozilla.firefox[232] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:19:04 PM [0x0-0x28028].org.mozilla.firefox[232] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/2/14 9:21:41 PM [0x0-0x28028].org.mozilla.firefox[232] NOTE: child process received `Goodbye', closing down
    6/2/14 9:21:44 PM [0x0-0x2a02a].org.mozilla.firefox[244] Background starting...

    Keeps happening:
    6/11/14 1:50:59 AM [0x0-0x271271].org.mozilla.firefox[5633] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/11/14 1:50:59 AM [0x0-0x271271].org.mozilla.firefox[5633] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/11/14 1:51:00 AM [0x0-0x271271].org.mozilla.firefox[5633] No permission to use the keyboard API for http://googleads.g.doubleclick.net
    6/11/14 1:51:00 AM [0x0-0x271271].org.mozilla.firefox[5633] No permission to use the keyboard API for http://googleads.g.doubleclick.net

  • Any one uses javax.print API and works?

    I have just downloaded 1.4 beta2 SDK and imported all the javax.print classes. I use the most simple test code as the following:
    FileInputStream fis = new FileInputStream("test.txt");
    try {
    DocFlavor psInFormat = DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII;
    Doc myDoc = new SimpleDoc(fis, psInFormat, null);
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(new Copies(1));
    aset.add(MediaSizeName.ISO_A4);
    aset.add(Sides.ONE_SIDED);
    PrintService[] services = PrintServiceLookup.lookupPrintServices(psInFormat, aset);
    if (services.length > 0) {
    DocPrintJob job = services[0].createPrintJob();
    job.print(myDoc, aset);
    } catch (Exception e) {System.out.println(e.getMessage());}
    However, PrintServiceLookup.lookupPrintServices can't find my printer. I have 9 network printers connected to my system which range from HP LaserJet 4500 to 8100 and Acrobat PDFWriter. The API can't find any of my printer? What did I do wrong

    Hi Guys,
    First,
    If your trying to print any document sent by the server from the client machine u have to write a applet which recieves the output in form of stream and then print it. I could do these with JPEG, GIF and ASCII but could not do it with PDF (The sun doesn't have a implementation for PDF document printing, they just have a declaration may future released will help us print PDF).
    If u want the Print dialog box to appear use the following code that worked fine for me.
    public class SomeClass
    public static void main(String args[]) throws Exception
    PrintRequestAttributeSet pras =     new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUTSTREAM.GIF;
    PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
    PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
    PrintService service = ServiceUI.printDialog(null, 200, 200,printService, defaultService, flavor, pras);
    if (defaultService != null)
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream("somefile.GIF");
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(byteArrayOutputStream, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    If u do not want the dialog box to appear and just print to the default printer of the local machine use the following code
    public class SomeClass
    public static void main(String args[]) throws Exception
    PrintRequestAttributeSet pras =     new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUTSTREAM.GIF;
    PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
    if (defaultService != null)
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream("somefile.GIF");
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(byteArrayOutputStream, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    Mean while if some body comes across any tweaks to print PDF documents using j2se1.4 please write to me at
    [email protected]
    Regards,
    Madhu

  • Trying to use ODAC on 64 bit Windows 7 with 64 bit Oracle 11g?

    I have been trying to connect to Oracle 11g with VS 2010 .NET Framework 4.0 on Windows 7 for about 5 days with no luck.
    Background: VS 2010, .Net Framework 4.0 and Oracle 11g 64 bit are running on the same maching.
    I have found that are two versions of the 64 bit ODAC.
    1) The XCopy bersion and 2) the Oracle Universal Installer version.
    To install the XCopy version, I right click on the cmd window, change to the folder where my xCopy install is and type install.bat all d:\oracle\myoraclehome odac just like the documentation says. The files are created in my Oracle home and there are registry keys under HKLM\Software\Oracle like the documentation says. I don't have a clue how to prove weather it's doing anything usefule though. When I go to VS 2010, I don't have System.Data.Oracleclient of Oracle.DataAccess.client or any other namespace that can talk to Oracle. How would I test the XCopy version and see if it is actually able to do anything?
    I like the Windows Installer version much better and set it up just like the readme.txt said to. I used the Oracle Data Access Components for Oracle Client 11.2.0.2.1. I wound up with two oracle homes, one for my server and one for the ODAC install. I copied tnsnames.ora and sqlnet.ora over to the odac client home's Network\Admin folder. From my server's oracle home, I ran sqlplus and was able to successfully login to the server. I liked the fact that it came with sample code and I saw that the Oracle.DataAcces.client dll was added as a project reference. I ran the samples with my userid and password and got a TNS Adapter error.
    Since the Oracle server is on the same server that everything else is on, I ASS-U-ME that I would want to install the Oracle Data although I didn't see it documented anywhere. I tried creating it in a different directory, but it says it must be installed on top of an existing oracle home. I tried creating it in my oracle home and got err message OUI-10044 - The selected oracle home location already contains an oracle home or APPL_TOP created while running a different OS.
    Can someone tell me how to correctly install either one of these and test it to make sure it is working?
    TIA I know someone on planet Earth must be using the 64-bit odac to connect to Oracle,
    George

    George,
    It sounds like I have the same setup as you and I am no expert on Oracle install issues but VS 2010 is 32bit. You need to install the 32 bit version of ODAC to make VS all happy. I was under the impression ther was no 64 bit version of ODAC? Then again I am no expert on the topic.
    I then installed the 64 bit xcopy version, decided upon the location for tnsname and then defined TNS_ADMIN. All works well. I create most of my exe's as AnyCPU and Windoze/Oracle seems to figure out what to do.
    r,
    dennis

  • How to use java comm API in 64 bit javn on solaris 10

    hi,
    I want to connect to a device through serial port on sparc Solaris 10 in 64-Bit JVM, but i cannot find the correct API for that, i have tried using RXTX but it has many issues.
    I noticed SUNWjcomx package is removed in Solaris 10.
    Please some one help

    hi,
    I want to connect to a device through serial port on sparc Solaris 10 in 64-Bit JVM, but i cannot find the correct API for that, i have tried using RXTX but it has many issues.
    I noticed SUNWjcomx package is removed in Solaris 10.
    Please some one help

Maybe you are looking for

  • How to verify that the user has changed table row data before db update

    Hi all, Iam using Oracle ADF with EJBs. I have a single selection table that displays rows of data returned from a function of my data control. The columns of my table are editable so that the user can change the data. The user selects a row, changes

  • Spotlight doesn't search numbers in the file name

    I have some videos of my favorite series and I have problems trying to find an specific episodes. For exemple, if the file name is [ScrubsS02E03_My_CaseStudy.rmvb], Spotlight will not return any results if I type [scrubs 03]. Am I doing something wro

  • Where is my product key?

    I purchased and installed my PSE-10 some time ago from a download, and recently had to re-install it due to corrupted codecs, but now I cannot find my product key, so it is installed as a 'trial' version, prompting me for the key. I checked my Adobe.

  • AIS (Audit Information Systems) and Process controls

    Dear Experts Have you seen any customer using AIS (Audit Information Systems) and Process controls, simultaneously for Audit purposes? Can we use the GRC Process Controls for Scheduling regular Audits, inaddition to the Internal Control Assessments?

  • I want to disable parallax but keep the Animations on 7.0.3?

    I got the new iOS 7.0.3 and I want to disable parallax. On 7.0.2 I would enable reduce motion and it would turn of parallax. Now when I turn on reduce motion it turns off parallax AND the animations. How can I ONLY disable parallax and not the animat