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
Solved

JavaApplets HELP!!!

Posted on 1997-03-31
4
269 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
Apps blocked by Java 9 88
check java version using powershell 13 177
Error in @AspectJ Based AOP with Spring 2 18
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

829 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