File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Install Signed Jar in windows registry? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Install Signed Jar in windows registry?" Watch "Install Signed Jar in windows registry?" New topic
Author

Install Signed Jar in windows registry?

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Guys
Let me ask the question in short way?
Is there any way to Install Signed Jar in windows registry without downloading through webserver.

Please have a look in C:\windows\Downloaded Program Files they are all dlls even Java, not even a single Jar is present

Regards
Farouk


SCJP, SCWCD, SCBCD, SCEA 5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
Can you elaborate what the Registry has got to do with the "Downloaded Files" directory, and what it is that you're actually trying to do?


Ping & DNS - my free Android networking tools app
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello Ulf
Thanks for your reply, Actually I am trying to defend my arguement with the company that an applet should be downloaded from the webserver rather than installing the applet in the windows registry.
Currently my organization has a practice of installing applets inside windows registy by deploying them as Signed CAB files which gets automatically installed inside when a page containng
this applet is reqested. I am trying to analyse whether instead of CAB is it possible to install SIGNED JAR FILES IN IE.
I can further eloborate please can you let me know whether you can understand what I am trying to achieve?
Thanks
Farouk
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
Are you using the obsolete Microsoft JVM? I don't think that ever supported signed JAR files. I'm asking because you mention CAB files, and the Sun JVM doesn't support those.

In the general case, having everything come from the web server is to be preferred over any scheme that involved installing files locally - it's much harder to update to new versions, and much easier to break if the user messes around with his machine.

Here is some information on signing applets that covers the various JVMs and browsers.
[ October 25, 2006: Message edited by: Ulf Dittmer ]
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello Ulf
Thanks for your quick response
YES we are using the obsolete Micorost JVM Microsoft jdk 1.1.8
YES we are currenly deploying into user PC because of organizational policy of architects not allowing us to download from webserver.

Right now we tried downloading a unsigned jar and it is working ok running inside the sandbox which is our preferred approach
but architects are asking us to install into the windows registry as CAB

I understand and appreciate what your saying about download jar and the reason for my analysis is that I am trying to defend saying downloading is better
approach than installing cab in the pc and also this CAB will be ok now for Microsoft JVM but for sun jvm it would be a concern

When your saying Sun JVM doesn't support CAB cant we use a HTML Converter to convert the html Applet tag into OBJECT TAG and then try to download cab file?


Am i right in thikning there is no way we can install a singed jar into a windows registry like signed cab file
Please conrfirm?
Thanks
Farouk
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
It's not a matter of using OBJECT over APPLET - the Sun JVM simply doesn't support the CAB file format.

I'm not familiar with the process of installing CAB files in the Windows registry, but I would be very surprised if it worked for JAR files as well. This might be something to research in the Microsoft Knowledge Base.

What is the rationale for wanting to use CAB files and the registry (beyond "the architects say so")?
[ October 26, 2006: Message edited by: Ulf Dittmer ]
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello Ulf
Thanks for your answers
I found more information about SUN JVM and MS JVM upgrade in this link below
http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/

Which clarified most of my doubts
Now one thing i am puzzled is about search path of MSVM where in it states in this article that
http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/article-19.html

MSVM supports unsigned JAR files to be placed inthere search path to be loaded by browser
%SYSTEMROOT%\Java\Lib -- for untrusted JAR/CAB files
%SYSTEMROOT%\Java\TrustLib -- for trusted JAR/CAB files
%SYSTEMROOT% -- C:\windows

Now I did place the unsigned applet jars inside these folders to be loaded from the pc rather than downloading from webserver. It does not work

Not sure any ideas please
Farouk
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Install Signed Jar in windows registry?