newbie applet help



Hello Javamen.

I am trying to install my first applet and am quite confused. The
applet I am trying to install is LEDSign v2.7. I downloaded the
package and opened the html page locally on my Win2003 IIS server as a
path (ex: d:\intranet\marquee\led.htm) and the applet worked like a
charm. Then I typed the url on the address bar
(http://localhost/marquee/led.htm) and got the page but with a
nonfunctional applet. I tried from a remote networked pc
(http://wwwserver/marquee/led.htm) and got the same error.

Here is the relevant portion of the html applet call:

<applet codebase="http://wwwserver/intranet/marquee"; code="LED.class"
width=500 height=48>
<param name="script" value="./marquee/demo.led">
<param name="font" value="./marquee/default.font">
</applet>

Here is the relevant java source where the script path param is used:

scrpt = new String(getParameter("script"));
url = new URL(getDocumentBase(),scrpt);
file = url.openStream();


Now here is the error I get on the Java console:

----%<-- clip --%<---
java.io.FileNotFoundException:
http://wwwserver/Intranet/marquee/demo.led
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.URL.openStream(Unknown Source)
at Script.initScript(Script.java:631)
at Script.<init>(Script.java:78)
at LED.getinfo(LED.java:265)
at LED.run(LED.java:314)
at java.lang.Thread.run(Unknown Source)
LED Sign Error - Bad script path in HTML:
File not found: "./marquee/demo.led"
----%<-- clip --%<---

All files are in "http://wwwserver/Intranet/marquee/";

In closing, the files do exist on the server on these paths, have user
read access, are web share enabled, all html files are accessible from
the same directories. The class DOES load and displays an otherwise
empty LED sign, with the IE browser status line showing "LED Sign Error
- Bad script path in HTML"

I hope this is enough information for some kind soul to see the error
of my ways. Any clues what might be happening?

.



Relevant Pages

  • Re: autodl of JRE 1.5
    ... It is not your applet which is downloading the Java runtime. ... That's impossible, because the user doesn't have Java installed yet, so it cannot run the applet, and so it cannot find out from the applet that it should be downloading something. ... Rather what's going on is that you've written some HTML, and the browser is interpreting the HTML, and sees a reference to a plugin which it does not have a reference to, and so the browser downloads the plugin, all before the applet ever enters the picture. ... If I click refresh of the page, I am prompted once again to install the ...
    (comp.lang.java.help)
  • Re: problem: security using IDEs appletviewer
    ... APPLET tag. ... The HTML above loads both the test1.jar and test2.jar and runs the class ... You have the image in a in a jar that has the name ... appletviewer will load all .jar files listed there. ...
    (comp.lang.java.help)
  • Re: LiveConnect applet crashing after page reload, please help
    ... string inside the applet and returning that string to javascript. ... in Firefox to insert the html string in the proper place. ... > public void actionPerformed{ ...
    (comp.lang.java.programmer)
  • Re: problem: security using IDEs appletviewer
    ... APPLET tag. ... The HTML above loads both the test1.jar and test2.jar and runs the class ... You have the image in a in a jar that has the name ... appletviewer will load all .jar files listed there. ...
    (comp.lang.java.help)
  • help - accidentally creating floating applet
    ... I'm porting jEdit's help system into an applet form. ... I'd like to instead embed the applet inside the HTML ... so I can have a link create a popup window. ... HelpViewer frame = new HelpViewer; ...
    (comp.lang.java.help)