Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Desparate problem !

Posted on 1998-04-23
3
Medium Priority
?
226 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 100 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

886 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