| View previous topic :: View next topic |
| Author |
Message |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 1:07 am Post subject: need help getting an applet to run!!! |
|
|
Hi--
I need some help getting an applet to run on a browser.
It works on applet viewer, but when I go to run it on a browser, all I get
is a blank gray square with a message saying: "class webDBApplet not
found" in the browser's status window.
All my class files are in the same folder,, I can't figure out what is
wrong with it. The file name is typed exactly the same in the html file
as the name of the class file.
Please help me resolve this problem.. I don't have a lot of time to fiddle
with it.
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 1:16 am Post subject: Re: need help getting an applet to run!!! |
|
|
Is your applet a Swing applet?
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 2:33 am Post subject: Re: need help getting an applet to run!!! |
|
|
Yes..
It has swing components in it. I have some new information for you..
I went to java.sun.com, downloaded the latest RE on [this] computer.
Now, in the browser it says (in status bar)
:
Applet webDBApplet notinited
,,
then, when you mouse over the area of the 'gray' area of the applet (which
now shows a red 'X' in the corner), it says in the status bar :
Loading Java Applet failed...
other applets (on other sites) work fine in the same browser, so it must
be something with my files..
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 2:40 am Post subject: Re: need help getting an applet to run!!! |
|
|
yes it does..
it shows now in the status bar:
Applet webDBApplet notinited
then, when you mouse over the area:
Loading Java Applet Failed...
That's about all I can tell you..the files are all in the same place. It
is an applet that attempts to access database files, but that should not
be a problem trying to get it to upload. I did read somewhere that
uploading the class files with ACSII can make them garbled. Do you think
that could be the case?
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 2:45 am Post subject: Re: need help getting an applet to run!!! |
|
|
I'm not sure if this is the same problem you're having, but years ago
when we first started using Swing applets, Netscape and other browsers
couldn't display those applets. Two modifications had to be made.
First, we had to add the lates t Java plug-in to the browser, and then
the HTML code had to be modified to instruct the browser to load the
plug-in. If your browser is old, this may be the problem. Look for
HTMLConverter and that will modify your applet's HTML code so that it
will instruct a browser to load a plug-in.
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 2:46 am Post subject: Re: need help getting an applet to run!!! |
|
|
Yes, you need to upload .class files as binary.
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 2:58 am Post subject: Re: need help getting an applet to run!!! |
|
|
how do I upload the class files as binary??
I have the html converter.. the file I really need to run is already
converted, so likely that is not the problem, because it does pretty much
the same thing (shows an x as if it is not finding the file-like when you
give a bad url to an image file.)
I'm guessing the culprit is uploading the class files. I am using a host
site such as angelfire.com or 150m.com. If you know how I can upload the
files as binary, that would be excellent.
--thanks,,
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 3:23 am Post subject: Re: need help getting an applet to run!!! |
|
|
When you tested the applet, did you test it on the remote server or on
your machine?
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 3:36 am Post subject: Re: need help getting an applet to run!!! |
|
|
on my machine..
hey, if you want to see what is going on, I have a test site at
www.150m.com
username = jeremiahsite.150m.com
pw = jeremiah
there are test files I have been fiddling around with during this
discussion here at home. the file I am trying to get to run is at another
site. It does the exact same thing as what is going on at this site. The
site 150m.com has a file upload option for binary, I did that..didn't
work, must be something else. When I converted the html file, it said
that it found the applet (at a loss.)
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 3:48 am Post subject: Re: need help getting an applet to run!!! |
|
|
What version of a browser are you using?
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 4:45 am Post subject: Re: need help getting an applet to run!!! |
|
|
Try recompiling and upload the .class file. I tried your sourc file on
my machine (with the .class file local) and it loaded the applet
without any problem.
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 4:56 am Post subject: Re: need help getting an applet to run!!! |
|
|
does it run in the browser?
the file runs fine on my machine, under the appletviewer.
|
|
| Back to top |
|
 |
JTMOBAP Guest
|
Posted: Sun Dec 19, 2004 5:18 am Post subject: Re: need help getting an applet to run!!! |
|
|
hey--it's starting to get late..
I will try different ways of compiling it, transferring it to this
computer, and putting it up on the web.
I'll come back here tommorrow and post another thread under the same
name., prob. around 12 noon or so.
: )
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Sun Dec 19, 2004 12:38 pm Post subject: Re: need help getting an applet to run!!! |
|
|
I used Netscape and the applet runs on my machine in the browser.
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Mon Dec 20, 2004 1:55 am Post subject: Re: need help getting an applet to run!!! |
|
|
On Sat, 18 Dec 2004 20:07:33 -0500, JTMOBAP wrote:
| Quote: | "class webDBApplet not
found" in the browser's status window.
|
<http://www.physci.org/codes/javafaq.jsp#appletie>
What does this read?
<http://www.physci.org/pc/property.jsp?prop=java.version>
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
|
|
| Back to top |
|
 |
|