# Security violation error for the applet in Netscape

ranil@sscomp.co.ae
Fri, 2 Oct 1998 11:40:27 +0530

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: schemers@Eng: "Re: Byte-code verifier"
- Previous message: Deepak Jindal: "Byte-code verifier"

--0__=1Kv9Od4FhlVn9Te4LMdViM8WQQ9ml5O4mQ5dPqV13YbjBYmIC9yvUNZB
Content-type: text/plain; charset=us-ascii

Dear Sir,

I have a peculiar problem in running an applet with Netscape browser.
The applet RUNS in AppletViewer and also in Internet Explorer.

* Error message in Netscape (tested with version 4):

In Netscape browser the following error comes.
Applet NewsWinPara can't start: Security violation: Security.Cannot define
package: java.awt

* Detail Description in point form:

(1) I wrote an applet to display news items one after the other and when
clicked on a particular item to go to its relevant URL.
(2) The news and the relevant URLs are passed as parameters to the applet.
(3) In the applet they are kept in 2 arrays urls & news
(4) To identify an end of a news item I use a number -7 in the HTML file
and a * in the program
(5) I use an offscreen buffer to draw the image and slowly moves it up to
get a scrolling effect

(6) THE APPLET WAS COMPILED IN JDK 1.1.6

(7)
Situation:
This works fine in Appletviewer and Internet Explorer (Tested with Version
4)

In Netscape browser (tested with version 4) the following error comes.
Applet NewsWinPara can't start: Security violation: Security.Cannot define
package: java.awt

(8) I am attaching a zip file containing the following files

i. JavaNewsPara.html ( The html file to call the java applet)
ii. NewsWinPara.class ( The class file)
iii. products.html ( a file which will be called when clicked
in the news applet)
iv. profile.html ( a file which will be called when
clicked in the news applet)
v. NewsWinPara.java ( The java source file )

(See attached file: news.zip)

HELP ME.

I AM LOST.
I DONT KNOW HOW TO PROCEED.
Please give me guidance on how to overcome this situation or a place or
book or URL where I can get help.

Thank you and Best Regards

Ranil Gunawardena
Web Designer
Seven Seas Computers

email: ranil@sscomp.co.ae

--0__=1Kv9Od4FhlVn9Te4LMdViM8WQQ9ml5O4mQ5dPqV13YbjBYmIC9yvUNZB
Content-type: application/zip;
name="news.zip"
Content-Description: .ZIP File
Content-Transfer-Encoding: base64

UEsDBBQAAgA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AAAAAMAAAAAAAAAAEAIAC2gfQBAABwcm9maWxlLmh0bWxQSwECMgsUAAIACACA
TUIlWNARLCsJAACdEAAAEQAAAAAAAAAAACAAtoGsAgAATmV3c1dpblBhcmEuY2xhc3NQSwECMgsU
AAIACACMTUIl5vFt+fgFAAAWFgAAEAAAAAAAAAABACAAtoEGDAAATmV3c1dpblBhcmEuamF2YVBL
BQYAAAAABQAFADEBAAAsEgAAAAA=

--0__=1Kv9Od4FhlVn9Te4LMdViM8WQQ9ml5O4mQ5dPqV13YbjBYmIC9yvUNZB--

- Next message: schemers@Eng: "Re: Byte-code verifier"
- Previous message: Deepak Jindal: "Byte-code verifier"