Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove the message Java Applet Window

 
Suresh Chilakam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42968
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42968
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
To work on all the client machines, where exactly the changes needs to be done?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic