Solved

Desparate problem !

Posted on 1998-04-23
3
211 Views
Last Modified: 2010-04-16
q-1 . I want to find screen resolution through applet ?
q-2.  I want to find a executable file on client machine if not found then down load from
        server and execute it. Everything should be done through applet.
0
Comment
Question by:hateli
[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
  • 2
3 Comments
 

Expert Comment

by:JetDiesel
ID: 1219478
I am willing to bet that there is absolutely no way Java will let you check for an installed application on the user's hard drive.  Java is explicitly limited to a virtual machine for the very reason that it should not be able to get information off the hard drive or mess with any files.  SO . . . if you want to have something download and execute, make it part of an executable, and have your users execute it.  Remeber that there are going to be people from all platforms able to run your Java applets, so anything that you want to do in them has to be cross-platform.  That rules out checking their registry or running a .exe windows file!
0
 

Expert Comment

by:JetDiesel
ID: 1219479
Sorry, I guess you could be writing a program to work on a LAN or a private page.  But if you know something about the users accessing this prog, it would probably make a lot more sense to write it in something other than Java.  For instance, all of microsoft's installation programs do the downloading themselves.  I think this would be possible in VB, but I think there's basically no way in Java.
0
 
LVL 1

Accepted Solution

by:
rprice032897 earned 50 total points
ID: 1219480
There is a way for an applet to do what you want.  The security system is set up to treat applets as untrusted and therefore restricts them.  In order to bypass this you must use a JAR file that contains a digital signature and the client must prepared to recognize this applet code as trusted.

The javakey tool that comes with the JDK is used for this.  How to do it can be found in the JDK documentation or Java in a Nutshell from O'Reilly.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 265
by zero exception 10 83
How to convert from xls to xlsx using java 7 167
Java import explained 4 49
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:
Suggested Courses

752 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