Results 1 to 6 of 6

Thread: Problem in JAR and javax.comm

  1. #1
    Join Date
    Dec 2009
    Posts
    204

    Problem in JAR and javax.comm

    Hello,
    I have a problem with the use of javax.comm, let me explain first, I could install it without problem, with the win32com.dll and javax.comm.properties file, so I could develop an application using this library Eclips 2.0. I would now achieve. Jar of my application. From what I understand, I'll have to create a little app to install the dll, the comm.jar and properties on the client. So I export a jar of my project, with a manifest file as explained in an FAQ, with the main class and classpath with the worm comm.jar I have for the time being located in a directory lib of my jar . If I do not have the class path noClassfound an exception, but if I put it, I get the error:
    Code:
    Java Virtual Machine Launcher: Fatal Exception Occurred. Program will exit.
    Please help me with it.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Problem in JAR and javax.comm

    Hello,
    win32com.dll dishes, comm.jar and the file properties in the same directory as the .jar in your application and after the manifest.mf tone. jar you put into class-path: comm.jar. I had similar problem, if any one has a solution for this then please post back with a good solution so that we can implement it.

  3. #3
    Join Date
    Dec 2009
    Posts
    204

    Re: Problem in JAR and javax.comm

    Hello,
    Thank you, java flip and the JVM runs the program without flinching, however javax.comm can not find the list of ports of the PC while it works very well with Eclipse. Somebody already faces the same problem? Thank you in advance for any suggestions. The program runs but I did not check the operation of the javax.comm.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Problem in JAR and javax.comm

    Hello,
    Can you post the code section where you get the list of ports? I had a similar problem. I no longer have the code handy, but I research and post you the solution. If you have any code or have an ideas to about the methods and classes to use in the java program, then please post send. I had done it before, but then I had a break in between, so if you guys can help be it would be great.

  5. #5
    Join Date
    Dec 2009
    Posts
    204

    Re: Problem in JAR and javax.comm

    Hello,
    Thank you it is good, I just found it. If I add:
    Win32Driver w32Driver = new Win32Driver(); / / Init Native Driver
    w32Driver.initialize();
    Before the first use of javax.comm it also works in the jar.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Problem in JAR and javax.comm

    Hello,
    Except that javax.comm works very well under linux and putting libLinuxSerialParallel.so libLinuxSerialParallel_g.so or must and addaptant file javax.comm.properties:

    # Implementation specific driver
    driver = com.sun.comm.LinuxDriver
    # Paths to server-side serial port devices
    serpath0 = / dev/ttyS0
    serpath1 = / dev/ttyS1
    # Paths to server-side parallel port devices
    parpath0 = / dev/parport0
    parpath1 = / dev/parport1

Similar Threads

  1. Unable to comm with scanner
    By Roasted in forum Networking & Security
    Replies: 6
    Last Post: 31-05-2010, 09:45 AM
  2. Replies: 4
    Last Post: 21-04-2010, 11:54 AM
  3. Replies: 4
    Last Post: 10-04-2010, 04:19 PM
  4. help: javax.speech
    By vinstar in forum Software Development
    Replies: 1
    Last Post: 22-02-2010, 03:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,874,607.88957 seconds with 16 queries