Solved

java applet security problem

Posted on 1999-01-07
9
198 Views
Last Modified: 2010-04-09
i am trying to launch a java applet from an html file
i have created the applet, and it runs fine on its own
(in Visual Cafe).  But when try to run it from the html
file, i get the error:

Exception com.ms.security SecurityExceptionE... (can't see all of it)

the html file and java class file are in the same folder.

what is going wrong?
0
Comment
Question by:mickeydog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 1

Expert Comment

by:Smilly
ID: 1841457
What does your Applet do? This exception is a Security problem.
Do you try to read/write a file, connect to a DB, or make a
socket connection....???
0
 

Author Comment

by:mickeydog
ID: 1841458
it reads some txt files and displays jpg files
0
 
LVL 1

Accepted Solution

by:
Smilly earned 50 total points
ID: 1841459
Okey, then its becouse you read som txt files, you cant read
a text file from an applet, as run in a browser, becouse the
browser will not alow it. It's a Security problem, becouse
when a client goes into your site, then he/she download your
applet, and it will then run local. So if you will load a file
from your machine, out to the clients mashine, then you have
to make a server application on your mashine, and make your
applet as a client applet.
So the client can get your txt files thrue the server
application.

I hope this will help you....Good luck.....
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mickeydog
ID: 1841460
it reads some txt files and displays jpg files
0
 

Author Comment

by:mickeydog
ID: 1841461
if i have to create a server application and a client applet, would it be easier if i just created one application thats runs like i had intended the applet to run?

0
 

Author Comment

by:mickeydog
ID: 1841462
oh, btw, in english, "becouse" should be spelled "because"


0
 

Author Comment

by:mickeydog
ID: 1841463
oh, btw, in english, "becouse" should be spelled "because"


0
 
LVL 1

Expert Comment

by:Smilly
ID: 1841464
Hehehe okey, Big mistake...Bec(a)use....Thanks, I'll remember that, oh btw. I, always spelled with a big I. Now we are even.

To your comment:
Okey, if you doesn't have to run thru a browser, then
there are no problems.....
But it's not a big thing to make client/server applications/
applets in java, you have all the classes, in your jdk.

0
 

Author Comment

by:mickeydog
ID: 1841465
haha! _i_ am just too lazy to type the <shift> key when typing 'i'.



0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
displaying 3 dropdownlist  horizontally 3 32
Obsolete font tag need to convert to CSS 3 36
Compute age Html 2 27
Read text on Table 7 30
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question