Solved

Desparate problem !

Posted on 1998-04-23
3
208 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
  • 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert from a json string array to a Java object 3 64
maven disable workspace resolution 1 38
What browser will run Java? 7 125
dao vs facade design patterns 2 33
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:

749 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