Troubles with Java Communications API & BlueJ

From: Sam Pen (lelino_at_vizzavi.it)
Date: 03/19/04

  • Next message: Mr.Cube: "Re: Troubles with Java Communications API & BlueJ"
    Date: Fri, 19 Mar 2004 21:25:17 +0000 (UTC)
    
    

    I've installed the Java Communication API because I want to make a
    program that communicate with the Serial Port.
    I've tried one of the sample program in the Java Communication API
    (SerialDemo)
    When I try to call the method main() I get the following message "Caught
    java.lang.NullPointerException: name can't be null while loading driver
    com.sun.comm.Win32Driver" and no ports are detected.
    If I also try an abstract method of one of the class of Java
    Communication API, CommPortIdentifier.getPortIdentifiers(), with
    Tools/Use Library Class... I receive the same error .
    If I run the program from the consolle typing "java SerialDemo"
    everything is ok, I mean that I don't get any error and all the serial
    ports are detected and everything is really OK.

    I give you other useful informations:
    Windows95;
    JDK1.4.0_01;
    Bluej 1.3.5;
    C:\j2sdk1.4.0_01;
    C:\Programmi\BlueJ;

    Thanks to anyone who will help me.

    -- 
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
    

  • Next message: Mr.Cube: "Re: Troubles with Java Communications API & BlueJ"

    Relevant Pages

    • Troubles with Java Communication API & BlueJ
      ... I've tried one of the sample program in the Java Communication API ... com.sun.comm.Win32Driver" and no ports are detected. ... If I run the program from the consolle typing "java SerialDemo" ...
      (comp.lang.java.programmer)
    • Troubles with Java Communication API & BlueJ
      ... I've tried one of the sample program in the Java Communication API ... com.sun.comm.Win32Driver" and no ports are detected. ... If I run the program from the consolle typing "java SerialDemo" ...
      (comp.lang.java.help)