Results 1 to 3 of 3
  1. #1
    rafzio4 is offline Member
    Join Date
    Sep 2010
    Posts
    5
    Rep Power
    0

    Default launching applet via jsp

    Hallo,

    On this forum I've found an old thread with following snippet

    <jsp:plugin type="applet"
    code="TestApplet.class"
    width="500"
    height="300">

    <jsp:params>
    <jsp:param name="message" value="Hello, world"/>
    <jsp:param name="action" value="<%=AppletAction%>"/>
    </jsp:params>

    <jsp:fallback>
    <p> unable to start plugin </p>
    </jsp:fallback>
    </jsp:plugin>

    I tried to launch my applet with this code but firefox asks me to install plugin (JRE, but it is installed), Internet Explorer throws exception MyPanel.class classnotfound. What's wrong?

    with regards

    Rafal Ziiolkowski

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default

    MyPanel.class classnotfound.
    The browser is looking for a file named: MyPanel.class.class
    Try removing the .class from the end of the code= attribute

    If you continue to get errors, please copy and paste here the full content of the browser's java console

  3. #3
    rafzio4 is offline Member
    Join Date
    Sep 2010
    Posts
    5
    Rep Power
    0

    Default

    Thanks for answer. Codebase parameter was lacking. Now in Internet Explorer my applet is running correctly, but Firefox still prompts me to install plugin for "type="application/x-java-applet". Is there another way to dynamically generate page that starts an applet?

Similar Threads

  1. launching .rm file outside java
    By nonboyx in forum Threads and Synchronization
    Replies: 2
    Last Post: 09-28-2009, 08:40 PM
  2. Problem launching Java applet
    By jacatone in forum Java Applets
    Replies: 3
    Last Post: 01-20-2009, 12:56 AM
  3. launching Jframe from text field
    By crunchymonkey in forum AWT / Swing
    Replies: 4
    Last Post: 10-15-2008, 03:50 AM
  4. Launching applications without an IDE
    By this_is_phil in forum New To Java
    Replies: 6
    Last Post: 05-24-2008, 08:54 AM
  5. Launching Applet from a JSP page
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-31-2008, 01:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •