Error in the latest Java comm api for Linux

installed latest Java comm api for Linux, tried test application for the Sun package:
$ java SimpleRead
Exception in thread "main" java.lang.ExceptionInInitializerError
at SimpleRead.main(SimpleRead.java:67)
Caused by: java.lang.NullPointerException
at javax.comm.CommPortIdentifier.findConfFile(CommPortIdentifier.java:199)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:117)
... 1 more
What deis this message mean? How to make you serial port support work?

and what does this error message mean??
The package was installed accordingly to "Java(tm) Communications API Linux Installation Instructions":
$ls /usr/lib/libLinuxSerialParallel.so
/usr/lib/libLinuxSerialParallel.so
$env|grep CLASS
CLASSPATH=<..skipped..>:/opt/commapi/jar/comm.jar:/opt/commapi/jar/commtest.jar
$ ls /opt/jdk1.5.0_04/jre/lib/javax.comm.properties
/opt/jdk1.5.0_04/jre/lib/javax.comm.properties
What else does it need?

Similar Messages

  • What's error in the install 8.1.7 for linux??

    When I install the 8.1.7 for linux, the OUI displayed
    the error following:
    Error in invoking target install of makefile
    /ora/u01/app/oracle/product/8.1.7/ctx/lib/ins_ctx.mk
    why?? help me.

    Hi,
    please look at forum "Platforms -> Linux".
    There you can find the solution under "Error in the middle of the installation R.H. 7.1"
    Thomas

  • Where can I find the latest version of agent for linux  for download?

    I have trouble when I try to install an agent in Linux for opscenter, I get this message:  status bad  interpreter, I check manually the script and I found that many internal scripts are written for Solaris in the last version release 2 PSU1. Can everybody help me?

    Hi Michele V,
    Yes I  run the OCDoctor and output was:
    ./OCDoctor.sh --agent-prereq
    Ops Center Doctor 4.33  [Linux]
    ========== Checking 12c Agent Controller Requirements ... ====================
    ERROR: gettext is not installed.
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ERROR: 32-bit version of libxml2 is not installed.
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    OK: Servicetag is not installed (sun-servicetag)
    OK: No old agent / conflicting packages were found
    OK: No old agent processes are running
    OK: LD_LIBRARY_PATH is not set
    OK: Checked for ssh requirements
    ./prereq/agent_prereq_all.sh: line 57: gettext: command not found
    You have mail in /var/spool/mail/root
    I appreciate yoiuyr help

  • I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    Hey socestlavie,
    Thanks for the question. I understand you are experiencing issues with iTunes for Windows. The following resource may help to resolve your issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks,
    Matt M.

  • What is the good voice xml api for java

    dear buddies,
    what is the best voice xml api for java? has somebody comeacross and work involving this, i would like to hear more about this
    thanks
    Kuha

    Maybe the VXML forum is a better place: http://www.voicexml.org/
    Good luck.

  • Error message the update" java for Mac OS X10.5 Update 4" can't be installe

    today i tried to installed the new update. I getting the error message the update" java for Mac OS X10.5 Update 4" can't be installed. Is anyone else getting this error? What do I do to get it installed?
    Austin

    Same here, can't install it on my Mac Pro with 10.5.7:
    16.06.09 09:04:10 Software Update[2553] reading from /var/folders/33/33rOYQ3fFnmQjRkC-FShb++TI/Cleanup At Startup/com.apple.SoftwareUpdate.HvePu4/Java für Mac OS X 10.5 Update 4: Is a directory
    16.06.09 09:04:10 Software Update[2553] reading from /var/folders/33/33rOYQ3fFnmQjRkC-FShb++TI/Cleanup At Startup/com.apple.SoftwareUpdate.HvePu4/Java für Mac OS X 10.5 Update 4/Java für Mac OS X 10.5 Update 4.dist: Operation not permitted
    16.06.09 09:04:10 Software Update[2553] reading from /var/folders/33/33rOYQ3fFnmQjRkC-FShb++TI/Cleanup At Startup/com.apple.SoftwareUpdate.HvePu4/Java für Mac OS X 10.5 Update 4/Packages: Is a directory
    16.06.09 09:04:10 Software Update[2553] reading from /var/folders/33/33rOYQ3fFnmQjRkC-FShb++TI/Cleanup At Startup/com.apple.SoftwareUpdate.HvePu4/Java für Mac OS X 10.5 Update 4/Packages: Is a directory
    Apple, please fix

  • Where can i find the Java doc API for Sun Portal 6.2

    Hi
    I am looking for the java doc api for portal.. for e.g, i want to know the available classes under com.sun.portal.providers.util and method details under that..
    Thanks
    Ramesh

    There should be a file called javadocs.jar in your portal installation directory. Either under SUNWps/sdk or SUNWps/export.
    - Jim

  • Java comm api in 64-bit Linux

    I apologise if this is off-topic. I can't find a suitable forum, I tried posting in the Java plugin forum, but no luck there. I would appreciate any ideas to find a solution.
    I am trying to use the java comm api to read and write to the serial port but I am getting the following error:
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: /usr/lib64/libLinuxSerialParallel.so: Can't load IA 32-bit .so on a AMD 64-bit platform
    I am using openSUSE 10.2 (X86-64) which uses Linux 2.6.18.2-34-default x86_64.
    I tried Switching to a 32-bit version of java (1.4.2) from within Eclipse and I always run Eclipse in 32-bit java (/usr/share/eclipse/eclipse -vm /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/bin/java) but I still get this error.
    Is there anything I can do to get the java comm api working on a 64-bit system?
    Is the java comm api still being developed and maintained? It does not look like it is?
    I've done some searching on the web and I find there is an open source version of the java comm api called RXTX but the website at http://www.rxtx.org/ is not very readable. I don't think I know enough to install this on my system.
    I would appreciate any ideas to get this working.
    Thanks,
    Martin

    I'm stuck again so I would appreciate some more help.
    I've managed to install the Sun 1.6 JDK and configure
    and make rxtx.Any small amount of progress is still progress. :)
    >
    But it still does not work, I get the following error
    when I run the SerialDemo:<snip>
    >
    It seems to be com.sun.comm which is not finding its
    native binary not rxtx! No, it's finding the shared library, unless there are a few more lines at the start of your error message that look like this:
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError:
    no LinuxSerialParallel in java.library.pathIt's not finding the function it is looking for in that library.
    This is what confuses me, the
    instructions say install the Solaris version of comm
    api (http://www.rxtx.org/ how-to said Solaris Sparc
    and the rxtx INSTALL file said Solaris x86 so I tried
    both in turn and neither worked) Same here after downloading the latest stuff to my x86 Linux box. I received a similar UnsatisfiedLinkError. I checked the shared libraries and the functions were not in it.
    normally these would
    call the Solaris binary drivers but I assume this has
    to be redirected to rxtx which calls its own
    binaries?Yes. There is a part of RXTX called JCL (Java Comm for Linux) that handles that.
    http://www.geeksville.com/~kevinh/linuxcomm.html
    However, I think the problem is that Sun's API has changed since the RXTX How-To was written. Try downloading the 'comm.jar' at the bottom of the page. It says:
    comm.jar, 2.0.3, generic, English (3rd party backward compatibility, only), EnglishUnzip it and copy the comm.jar file to the 'jre/lib/ext' folder of the JDK/JVM where everything else RXTX created was placed.
    After doing this the SerialDemo app started for me without errors.
    Jim S.

  • About Java Communication API for Windows

    hi
    I'm studying Serial Communication in university.
    I'd like to know the reason why we can't downlaod Java Communication API for Windows.
    I confirmed Comm for Linux and Soralis, but I can't find Comm for Win.
    Please tell me the reason if someone know.

    For no particular reason Sun stopped supporting the windows version
    of that package. I use rxtx which happens to allow for much faster
    communication too.
    The interface is identical to Sun's version, just the package differs: "gnu.io".
    kind regards,
    Jos

  • 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.

  • Deploying Java Comm API

    Hi,
    I am developing an applet which uses Java Comm API. I'm running into some deployment issue. My understanding is that Java Comm API needs to have win32com.dll and javax.comm.properties files installed on the client machine for my applet to use Comm API. Is there a way around this? The ideal way will be to have everything (win32com.dll and javax.comm.properties) in a jar file so that it doesn't need to install any file on the client machine. However looking at previous posts, I don't think that's possible with Java Plug-in. Will I be able to utilize Java WebStart to accomplish this? I'll be interested to find how other people deploy Java Comm API. Thanks in advance.
    Regards,
    Joy

    I�ve developed a solution to this problem. I created a class that creates the javax.comm.properties file where the comm.jar lib looks for it. The trick is to run the method that creates the file before the lib looks for it.
    I show you the example of my code:
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    public final class PrinterInit {
        public static void printerInit(){
            String archivoConf =
                System.getProperty("java.home") + File.separator + "lib" +
                File.separator + "javax.comm.properties";
            try {
                BufferedWriter out = new BufferedWriter(new FileWriter(archivoConf));
                out.write(
                    "#"+ "\n" +
                    "# Drivers loaded by the Java Communications API standard extension"+ "\n" +
                    "# at initialization time "+ "\n" +
                    "# "+ "\n" +
                    "# Format: "+ "\n" +
                    "#   Each line must contain ONE driver definition only "+ "\n" +
                    "#   Each line must be of the form: "+ "\n" +
                    "#           driver=<ClassName> "+ "\n" +
                    "#       No spaces or tabs in the line. "+ "\n" +
                    "#       ClassName must implement the interface javax.comm.CommDriver "+ "\n" +
                    "#           example: driver=Win32Serial"+ "\n" +
                    "#   "+ "\n" +
                    "#"+ "\n" +
                    "# The hash(#) character indicates comment till end of line."+ "\n" +
                    "#"+ "\n" +
                    "# Windows Serial Driver"+ "\n" +
                    "Driver=com.sun.comm.Win32Driver" + "\n");
                out.close();
            } catch (IOException e) {
                System.err.println("No se pudo crear el archivo:" + "javax.comm.properties");
                System.err.println("Ruta completa:" + archivoConf);
    }Before opening the port I call
    PrinterInit.printerInit();This example writes de javax.comm.properties file needed for a windows implementation. You can change the value of the Driver property for the system you are using.
    Good Luck!

  • When i try to install the latest java, my computer restarts.

    I was using Limewire until my computer began restarting. I decided to do a virus and a spyware scan but neither work. I then uninstalled Java because thats what Limewire uses. I then downloaded the latest Java, double-clicked it, and it began installing but before it finishes installing, my computer restarts each time. When i check to see if it is installed, only a directory is in the add remove programs list but Java isnt installed. CAN SOMEONE PLEASE HELP ME OUT.
    If you have any suggestions my e-mail is [email protected]
    ty

    I did another investigation on my computer. I turned offf my automatic system restart to see what error is causing my comp to restart and then i tried installing (jre-1_5_0_02-windows-i586-p). My computer went to a blue screen that said BAD_POOL_ERROR and I was forced to restart the computer myself this time. After i restarted, i uninstalled whatever was left of (jre-1_5_0_02-windows-i586-p), restarted my computer again, then this time i decided to install (j2re-1_4_2_06-windows-i586-p-iftw). The Java 1.4 seems to work on my computer but it still asks me to update and when i do, i get the same problem all over again. My network card drivers are up to date, my router drivers are up to date, and i also did a thorough check for both viruses and spyware using Bullet Proof Soft spyware adware remover, Norton antivirus, and Avast! antivirus, but i still can't pinpoint why i can't install the latest java. I searched the net for some answers and it also seems that I'm not the only one with this problem. From what it seems, no one has figured this out yet.

  • Problem with java communication api for gsm modem port

    Hi,every body
        Am using gsm modem in my project previously my linux is 32bit with 32 bit jvm of sun that time there was no problem at the time of working with gsm modem port .But now am using 64bit linux then 32bit files are not supporting to communicate with gsm modem port .How can i get java communication api for unix 64bit ,64bit jvm of sun.please any body help me ...i am searching in sun/oracle also for downloading java communication files of 64bit jvm but i didn't get the link... i need bellow java communication api files.
           ex:1)libLinuxSerialParallel.so
                2)javax.comm.properties
                3)comm.jar
                4)commtest.jar

    Moderator Action:
    This duplicate cross-post is locked.
    Stay with your original post.
    https://forums.oracle.com/thread/2602063
    (... and your hijack reply to a third thread has been removed.)

  • Why can't I run the latest Java on Firefox to operate my network camera? It does not find Java. Please Help!!

    I just installed a network camera in my home correctly and signed in to view what was on the camera. But after logging in , info comes up with" cannot find Java" with an install button. I have the latest update of Java and the Firefox browser. There is no red block in the search bar that asks me to allow the site to use Java nor does it ask me to allow the site. I did uncheck the box in the control panel as it tells me to do in Java so that it asks me to use Java. Nothing works. I am so tired of installing and uninstalling, clearing my cache. Opening and closing my browser and reading info to fix this. I just want to be able to view what my camera films. Nothing on the firefox site answers or solves my problem. And believe me I've tried til my head is spinning. Someone has to have an answer. I need a vacation after this...Lol...
    Thanks...

    The Java plugin doesn't show in the System Details List.
    Is 32 bit Java installed on your computer?
    You can find the latest Java version on the Oracle website.<br />
    See Java Platform > Java SE 7U45 (JRE Download)
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html
    You need the 32 bit JRE for Firefox.

  • 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.

Maybe you are looking for