Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Can IE java control access serial port?

Thread view: 
flmbray@gmail.com - 26 Nov 2007 16:09 GMT
I'm investigating options for our options on providing a web-based
java upgrader for a serial port device that my company produces.  Can
anyone tell me if SerialPort communications are restricted when
running inside a java applet in IE?  TIA.

-mdb
Matt Humphrey - 26 Nov 2007 16:27 GMT
> I'm investigating options for our options on providing a web-based
> java upgrader for a serial port device that my company produces.  Can
> anyone tell me if SerialPort communications are restricted when
> running inside a java applet in IE?  TIA.

An applet will not naturally have permission to access the serial port.
Actually, I'm pretty sure there's nothing in the JVM for accessing the
serial port at all--you'll need some kind of external library /dll and JNI
wrapper to do that.  You'll have to sign the applet and the user will have
to grant permissions to load and run the external library (presuming it's
possible at all.) Alternatively, you can do it via an applicaton or by Java
WebStart, which can eliminate some of the hassle.

Matt Humphrey http://www.iviz.com/
Knute Johnson - 26 Nov 2007 22:42 GMT
> I'm investigating options for our options on providing a web-based
> java upgrader for a serial port device that my company produces.  Can
> anyone tell me if SerialPort communications are restricted when
> running inside a java applet in IE?  TIA.
>
> -mdb

If you don't need to do bidirectional communications and you are using a
Windows OS then it should be fairly easy.  If not I think you are going
to find it very difficult.  The serial comm software to interface with
Java requires installation of a DLL on the client machine.  It is
disheartening that serial I/O through RS-232 and USB are not part of the
Java language support.  It severely restricts Java's usefulness in that
area of programming.

Signature

Knute Johnson
email s/nospam/knute/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.