Solved

java applet security problem

Posted on 1999-01-07
9
194 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
  • 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
 

Author Comment

by:mickeydog
ID: 1841460
it reads some txt files and displays jpg files
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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)

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now