Solved

Desparate problem !

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
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 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:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

706 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

14 Experts available now in Live!

Get 1:1 Help Now