Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2007, 07:27 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
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:

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("%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 08:57 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-05-2007, 04:28 PM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
To access to the port you have to use Java Communications API
Java Communications API
http://java.sun.com/products/javacom...s_guide_3.html
http://java.sun.com/products/javacom...api/index.html

Last edited by Heather : 07-02-2007 at 07:44 PM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-02-2007, 07:44 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
sun doesn't support windows with this API, but there are anothers libraries

RXTX : serial and parallel I/O libraries supporting Sun's CommAPI
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to scan your computer for ports in use Java Tip java.net 0 04-07-2008 09:13 PM
Looking for servers on ports Java Tip Java Tips 0 12-13-2007 10:28 AM
javax.comm package for COM ports valery Advanced Java 1 08-07-2007 04:03 PM
How to know the ports opened by JVM sandeepspatil Advanced Java 1 08-02-2007 02:51 PM


All times are GMT +3. The time now is 03:45 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org