Re: Java Applet not working in web browser



On Oct 5, 6:11 am, Cyron <mdigit...@xxxxxxxxx> wrote:
....
I've developed a simple Java Applet ..

There is no such thing. The only simple projects
run headless (no GUI), and applets embedded in a web
page add a whole new (and exciting) level of problems.

Having experience with both applets, and separately
frames (and applets) launched using web start* (from
a browser link), I would recommend web start and frame.

I there any reason this little project needs a
browser wrapped around it?

..using Eclipse -- it works just
fine from within Eclipse, ..

How doe eclipse run the applet? Does in invoke
the JDK's AppletViewer?

..but I can't get it to render from within a
web browser.

Do you pop your browser's console?

.. I have copied the following files into a folder:

index.html // the webpage i'm trying to view the applet from
CheckIt.class // the applet file produced by Eclipse
java.policy.applet // another file that came with the .class file.

Are you AKA 'Willy Stevens'?! That is the second
reference to policy files in regard to applets that
I've heard today!
....

* For some examples of apps. launched using
web start, see <http://www.physci.org/jws/#apps>

Andrew T.

.



Relevant Pages

  • Re: java reflection issues
    ... How the browser works inside is its own business, ... Also consider that Applets running on different pages are not supposed ... the various browsers work vis a vis multiple Applets per page, ...
    (comp.lang.java.programmer)
  • Re: this.showStatus not working...
    ... apparently a bug. ... OTOH - I guess Sun would have every right to mark ... As a general comment on applets though. ... and browser if the browser/Java versions are different ...
    (comp.lang.java.programmer)
  • Re: Maximum number of Java applets running at one time?
    ... or a new VM for each browser window (AFAIU - ... all applets on the same web-page have to share the same ... Not if it's a Sun JVM. ... Windows, the JVM icon will apear when you first visit a site which uses Java, ...
    (comp.lang.java.programmer)
  • Re: html-emitting applets
    ... > Applets produce a usually fixed size image the browser integrates. ... the problem people usually resort to JavaScript for. ... coding language into web browsers past the W3C these days. ...
    (comp.lang.java.advocacy)
  • Re: getApplets() method of AppletContext w/ Java 1.4.2_13 and IE 7.0 (or Opera 9.10 for that matter)
    ... work correctly in JRE 1.4.2_13. ... Using which browser on which OS. ... Why are you using an obsolescent Java? ... identifies applets within the same VM instance. ...
    (comp.lang.java.programmer)