Solved

Desparate problem !

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

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
Java 1603 Error 3 50
How to parse custom JSON to POJO java 4 52
reasons why a "inside Menu" would not appear for a web server 6 56
Starting to learn JAVA, 7 59
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

914 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

12 Experts available now in Live!

Get 1:1 Help Now