Solved

Applets' access to system resources.

Posted on 2003-10-21
10
180 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
  • 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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 …
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now