Embedding .Jar files into iWeb

Discussion in 'Web Design and Development' started by nomar383, Sep 7, 2008.

  1. nomar383 macrumors 65816

    nomar383

    Joined:
    Jan 29, 2008
    Location:
    Rexburg, ID
    #1
    Okay I give up, googling is getting me nowhere.

    How would I embed a .jar file into my website? I am pretty sure it's possible and I'd like to do it in iWeb :)
     
  2. SrWebDeveloper macrumors 68000

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #2
    I am pretty sure MobileMe does not support java.

    If you're publishing that way, you need to serve the applet externally on your own web server where you've got it running and working just fine. In iWeb 08 add an HTML snippet via inspector and code it accordingly (example):

    Code:
    <APPLET CODEBASE="http://youripaddress:8080" ARCHIVE="your.jar" CODE="your.class" WIDTH=640 HEIGHT=480> 
    <PARAM NAME="x" VALUE="y"> 
    </APPLET>
    
    Meaning, use your own IP and port, your own archive including any optional path although best if you leave it at the document root, the class name, dimensions and any parameters your applet requires.

    This advice is based on Google research, untested.

    -jim
     
  3. nomar383 thread starter macrumors 65816

    nomar383

    Joined:
    Jan 29, 2008
    Location:
    Rexburg, ID
    #3
    Makes sense, but do I need a class file?
     
  4. SrWebDeveloper macrumors 68000

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #4
    Probably not, I just gave you available attributes.
     

Share This Page