Java in iWeb?

Discussion in 'Web Design and Development' started by Soundburst, Aug 2, 2010.

  1. Soundburst macrumors 6502a

    Joined:
    Oct 4, 2006
    #1
    Hey guys,

    I've made a random little application using the Processing application and exported the file . . .all it's contents are in an "applet" folder.

    I can also export the app as a ".app" file.

    Is there any way I can have this little app embedded into my web page. I use iWeb with an FTP server.

    Thanks. :)
     
  2. Ride9650 macrumors 6502

    Joined:
    Jun 29, 2007
    #2
    I believe iweb has a HTML snippets panel you can use to input HTML.
    Just take the HTML off the index page that Processing generates and paste it in.

    If for some reason iweb doesn't like object tags, you can also copy and paste after iweb generates the the whole site.
     
  3. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #3
    Hey, thanks for the help. . .I've found the html file in the applet folder I exported. . .but surely this isn't my whole app? It's only 4kb big?

    Do I have to upload the entire applet folder to my web space in the /public.html folder?

    Thanks again :)
     
  4. Ride9650 macrumors 6502

    Joined:
    Jun 29, 2007
    #4
    Correct. Its not your whole app. The object tag links to the applet itself and loads all the necessary files to embed the applet in the web page, thats why the the web page is so small.

    You can, but don't have to upload the entire thing, just the .jar that gets generated.
    Also:
    - If you want the links to the source code to work you'll have to upload the .pde file too.
    - If you want the loading graphic, you might as well just upload everything.

    Remember to change the paths in the HTML if you're not going to keep everything in one place.

    Lastly, next time, the Processing website is probably where you should start your search for answers to questions. This took me less than a minute to find

    http://processing.org/learning/gettingstarted/

    Theres also now a wiki
    http://wiki.processing.org/w/Main_Page

    And a forum:
    http://forum.processing.org/
     

Share This Page