• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to remove the message Java Applet Window

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How to remove the message "Java Applet Window" displaying at the bottom of the applet window.

I tried the below permission settings in .java.policy file. But no luck.

grant {
permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
};

Could you please let me know if anyone know how to remove the message.

Thanks,
Suresh Chilakam
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you ascertain by other tests that that file is actually being used?
 
Suresh Chilakam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried by signing the jar file. I am able to remove the message now.

How to determine java.policy is being used by our application?

Thanks
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By putting in other permissions and making sure that those are being used (meaning that the applet actually has those permissions), maybe for file I/O.
 
Suresh Chilakam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My prob is solved with signing the jar files. But I am trying to do with policy file.

I have two versions of java on my machine. One is j2sdk1.4.2_17 and the other one is from BEA Weblogic Platform.

Java installed under c:\j2sdk1.4.2_17 and
BEA's jdk installed under C:\bea\jdk142_11

I have added permission
java.awt.AWTPermission "showWindowWithoutWarningBanner";
in both the JRE's java.policy file but couldn't hide the warning message.

I found one more java.policy file as public JRE under
C:\Program Files\Java\j2re1.4.2_17\lib\security. If I add the awt permission here, I am able to hide the applet warning message when I accessed my web application from my machine. But not able to hide the warning message when accessed from other machines.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Changes to the security policy only work on the machine where you apply them. Each client machine will need to have those changes, or they will see that message.
 
Suresh Chilakam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To work on all the client machines, where exactly the changes needs to be done?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I said, each client machine will need to have those changes applied. Since that's beyond what the average (non-technical) user will be able/comfortable to do, signing the applet is the better option.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic