Solved

java applet security problem

Posted on 1999-01-07
9
199 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
Technology Partners: 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

717 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