Solved

Serial ports w/ Java Applets

Posted on 1998-04-22
4
155 Views
Last Modified: 2010-04-16
Can anyone tell me either how(or where) I can find info on using the ports on a PC(you know, the kind you put your printer on) thru a APPLET. If you give me a great response, I'll quadruple the points.

TIA, Matt Lesko
0
Comment
Question by:MattLesko
  • 2
4 Comments
 

Expert Comment

by:java_lord
ID: 1219371
You have to use native methods (an api to interface with machine specific functions) or use a daemon to transfer everything from the machine the applet was launched from.
0
 
LVL 16

Expert Comment

by:imladris
ID: 1219372
It should be noted that, naturally, any use of native methods is not multiplatform. Nor will it be generally loadable across the Net. I mention this, since you specified APPLET in capitals.

There is a communications API forthcoming that will handle this to some extent or other. See http://developer.javasoft.com.

0
 
LVL 1

Expert Comment

by:dufort
ID: 1219373
I have a solution to your problem... just review your proposed answers (in order to allow me to add my answer) and I will submit it to Experts Exchange.

0
 
LVL 1

Accepted Solution

by:
dufort earned 50 total points
ID: 1219374
Here is a site where you can find a serial port control for Java. It works on most of the platforms. There is a free trial version, but you should buy it (it's not expensive):

http://www.sc-systems.com/serPort.html

But don't forget that there are security limitations when using applets over the Net. Local applets have no restrictions of course.


0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 85
Basic Java Case or If-Else statement... 3 50
map related example 6 48
printf performancy 11 42
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question