Results 1 to 3 of 3

Thread: Ports In Java

  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default Ports In Java

    Hi everybody
    My question is the following one:
    I did a small practice that i ve found in Internet, to ignite domestic appliances through of lpt1, the program that controls the value that sends to the port in c ++ and it is the following one:

    Java Code:
    #include<dos.h>
    #include<stdio.h>
    #include<conio.h>
    int a; /
    void main()
    {
    a=0; 
    outp(888,a); 
    clrscr(); 
    printf("enter a decimal number.\n");
    printf("The maxest number acept is:\n");
    scanf("&#37;d",&a); 
    outp(888,a); 
    printf(" data sended...!!!\n\n");
    printf(" press any key to exit");
    getch();
    outp(888,0);
    }
    Now I am going to change the software to java but I do not have very clearly to do it.
    Can you explain me?
    thanks a lot
    Last edited by levent; 06-04-2007 at 07:57 PM.

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    8

    Default

    Last edited by Heather; 07-02-2007 at 06:44 PM.

  3. #3
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    sun doesn't support windows with this API, but there are anothers libraries

    RXTX : serial and parallel I/O libraries supporting Sun's CommAPI

Similar Threads

  1. How to scan your computer for ports in use
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 08:13 PM
  2. Looking for servers on ports
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-13-2007, 09:28 AM
  3. javax.comm package for COM ports
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 03:03 PM
  4. How to know the ports opened by JVM
    By sandeepspatil in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •