Solved

Applets' access to system resources.

Posted on 2003-10-21
10
185 Views
Last Modified: 2010-03-31
I want to communicate with a device from an applet for which I need the system resources to be accessed. How do I go about doing this, using applets? Can system resources be accessed using applets? If so, how can I do it? Please, help me out.
0
Comment
Question by:puvi044
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 3

Accepted Solution

by:
krispols earned 63 total points
ID: 9596846
hello puvi044,

You couldn't access system resource with applet for security reason. The only way is to change permission in the browser JVM.

regards
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 62 total points
ID: 9596872
 ... so you will need to sign the applet in order to give it special access.
0
 

Author Comment

by:puvi044
ID: 9596916
by signing, can i access COM ports? How do I do signing applets? any references for signing applets?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Expert Comment

by:girionis
ID: 9596938
 I am not sure about COM objects :( TAke a look here fr signing: http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html

  also make a search on google it will come up with loads of info.
0
 

Author Comment

by:puvi044
ID: 9596954
krispols,

how do i change permission in browser JVM to get what i wanted. as girionis said, i got signing as an option from few other resources also.

thanks girionis n krispols for the help.
will get back to u if i need more help.
0
 
LVL 35

Expert Comment

by:girionis
ID: 9596973
> how do i change permission in browser JVM to get what i wanted

  By signing the applet. The VM will do it  automatically for you. Another option is to change the java.policy file. This is a good option if the applet is only going to be used locally (in the intranet);
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9597207
>>by signing, can i access COM ports?

You need the Java COMM API:

http://java.sun.com/products/javacomm/

How do I do signing applets?

See http://mindprod.com/jgloss/signedapplets.html
0
 
LVL 3

Expert Comment

by:krispols
ID: 9604705
hello puvi044,

If your application run in intranet, you could change permission of JVM via java.policy file, but if it's internet applet even you sign it, there is no way to change policy dynamicaly.

regards
0
 
LVL 92

Expert Comment

by:objects
ID: 10181924
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between krispol and girionis

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

objects
EE Cleanup Volunteer
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache Camel - Unable to propagate JMS Header Properties between Request - Response 3 41
throw exception 21 79
by zero exception 10 83
CSV file parsing thru Java 13 54
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

759 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