Solved

JavaApplets HELP!!!

Posted on 1997-03-31
4
265 Views
Last Modified: 2008-03-04
Ok, I am giving all the points I have left.  I need this answer and no one has got it yet.  I have AppletAce by Macromedia.  I am trying to put an applet on my home page.  A banner to be exact.  If I put the applet on my page through frontpage editor and I have AppletAce open, Send the files over and then call up the html doc on the web, it works.  Great right?  Not so.  when I restart my computer the applets are nolonger working.  I assume no one else is even able to see them the first time.  And I must be able to see them working because of some file on my system.  AppletAce does not tell me which files to send to my server. I sent the html doc, the Banners.class and the msgbanners.class files.  I also sent over the other class files in the Powerapplets directory.  I don't know what else to do.  Please someone help.
0
Comment
Question by:coffkid
4 Comments
 
LVL 2

Expert Comment

by:majkl
ID: 1219333
it is hard to say, what to do . To less facts. Try to put on the web page all classes. It should load just one class, and see errors that will produce if others are missing.

0
 

Expert Comment

by:heech
ID: 1219334
It might be nice if you included the URL so we could look
at your HTML... even if its done with frontpage, that
might give a better idea.
0
 

Expert Comment

by:kilobug
ID: 1219335
Which navigator do you use? (Netscape 3.00, Communicator, ...)?
0
 

Accepted Solution

by:
rvdb earned 50 total points
ID: 1219336
I've seen this error before with applet ace
I've a download site for applets and had this question before .
This also was about a banner with appletace .

AppletAce sets the codebase in this case wrong .
The codebase attribute refers to a local file .
But when it uploads the html file this codebase still refers to the local files on your computer .

Applets can't read your local files when they are started from the
web .
This is a security restriction .
So nobody can spy on your system with an applet.

But way does it still work untill you restart the computer ?
Simply because the browser uses the class files from your cache .
When restarted these are no longer available and the
browser will say Applet can't start can't find Banner.class.
or something like that

What do you have to do to correct this ?
Very simple remove the codebase attribute in the applet tag .
Also you have to upload the Banner.class file .
(Appletace also forgets to this in this case )
This class file must be in the same directory as the html file .

Wach out for the letter cassing of this class file .
Some old Windows 3.11 FTP programs change the letter casing
This is because they use the old Dos filenames in stead of the
long windows 95 filenames .
Also they shorten the ectension *.class to *.cla

There are olso some non Windows 3.11 FTP programs that change the lettercassing .

You can check if the browser can find the class file .
Simply type the url to it in the browser .
If the browser finds it you will be asked if you want to download it .

If this doesn't answer the question send me an email .
I get every day this kind of questions .
(Sorry if my english spelling is bad )

Greetings Rob.
Just visit me once at
http://www.nedernet.nl/~rvdb
rvdb@nedernet.nl

I've got plenty of applets for you.

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

758 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

17 Experts available now in Live!

Get 1:1 Help Now