We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Eclipse Expoprt Woes
Page Index Toggle Pages: 1
Eclipse Expoprt Woes (Read 687 times)
Eclipse Expoprt Woes
Oct 12th, 2007, 2:47pm
 
Hello all

I'm doing a little processing development in eclipse and i want to be able to embed my applet into a web page. I noticed in the pde that there is an export option which will generate all the necessary files.

Obviously there's a fair bit to it when using eclipse so could anyone me tell me how to go about it or anyone that could point me in the direction of a decent post regarding this.

I have searched for this on the forum and i do get an out of date article which isn't really much help.

Any help would be appreciated

Cheers
Jimmy
Re: Eclipse Expoprt Woes
Reply #1 - Oct 13th, 2007, 2:29pm
 
Hi Jimmy,

You've got a few options. I'm sure you saw the link which REAS posted ( http://www.mostpixelsever.com/tutorial/eclipse ) which covers setting up a project in Eclipse, but not exporting to an applet.

My preferred way to do this is to use the Ant script (originally built by Toxi and heavily edited by me) to build and export your applets. The latest version of my "p5barebones" package is available at http://www.andrewberman.org/ , and I posted previously about how to import it into Eclipse: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1183509422;start=2#2

Of course, you will need a recent version of Ant set up to do this, and you'll have to move your code over into this setup. Let me know if you have any problems getting things to work, or if you figure out a better method, please share it with us!

greg
Re: Eclipse Expoprt Woes
Reply #2 - Oct 13th, 2007, 10:20pm
 
I use the Fat Jar Eclipse plugin to export applications from Eclipse. It should be usable for applets as well, and probably is easier than using Ant.
Re: Eclipse Expoprt Woes
Reply #3 - Oct 14th, 2007, 11:43pm
 
Fatjar does look nice for exporting applications, but the problem with applets is that they require you to generate a whole bunch of HTML code as well as create the jars, and if you want to be able to do things beyond the Applet sandbox (i.e. write files, access other servers) you will need to sign your applet. This is only either done through the command-line, or with Ant.

The aforementioned Ant script can handle all of these things, including outputting OpenGL applets. Although there is some overhead involved, it's quite well worth the effort.
Re: Eclipse Expoprt Woes
Reply #4 - Oct 15th, 2007, 10:18am
 
Thanks all... i did actually get ant working to build my applets on friday afternoon (after a whole day of messing with it)... I'm hoping to get a blog post up on getting a simple build working. I'll post once it's written.

Thanks for your help

Cheers
James
Page Index Toggle Pages: 1