Solved

Applets' access to system resources.

Posted on 2003-10-21
10
181 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
where is session ID cache stored 1 46
how do i compare an object based on two fields 6 48
ForLoop Example 3 40
egit plugin on eclipse 8 33
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

911 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

18 Experts available now in Live!

Get 1:1 Help Now