Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Signed JAR applets in 1.2

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on an applet that needs to break out of the typical applet sandbox for several reasons (printing, accessing a database that lives on a different machine than the webserver, etc...). I'm using JDK 1.2 and the plug-in that ships with the JDK.
The problem is this -- signing the JAR file doesn't automatically grant the applet permission to break out of the sandbox. I really wished it worked like MSIE (I can't believe I'm saying this) -- in IE, if you have a signed CAB file, the browser will prompt the user and ask if they want to trust the program and allow it to run like a local application. With the plug-in, the user has to run the policytool to grant the applet permission.
This is entirely unacceptable for my situation because we have a lot of client users and they're not technically skilled. To ask them to use policytool -- which is itself already a very unfriendly program even for Java programmers -- would cause support nightmares.
So I need a way to automatically update their policy file so that it gives the applet permission to run. I'll probably have to write a Windows executable to do this.
My question is -- has anyone else done this before? This seems like it comes up a lot in Usenet groups but no one can give any hard details regarding how to solve this problem. Supposedly the next release of the plug-in will work much more like MSIE, but my group can't wait that long.
Any clues? Thanks,
Jim McCabe
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll find that nobody wants to answer your question. I've been looking myself for weeks. Sun seems to think it is Ok for a client to manually run a couple of tools in order to add the proper security. Thats a bunch of blank. But so far I have not found an alternative.
James Spellman
Not a Happy Camper
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks.. :cool
even i am stuck up at the signed applet...
could anyone rescue this signed applet thing

denice the menace
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Event I am looking for the same solution.
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic