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.
IndexProcessing DevelopmentLibraries,  Tool Development › How to compile a library
Page Index Toggle Pages: 1
How to compile a library? (Read 1439 times)
How to compile a library?
May 18th, 2007, 10:22pm
 
Hello,

I was wondering if someone who has successfully created a Processing library could tell me what compiler they used to build it.

I am having a pretty major problem, which you can read about here: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1171639720. I thought it was related to having version 1.5 classes, but I am starting to think that this is not the case. I tried using EEL (http://www.masutti.ch/eel/) and Retroweaver (http://retroweaver.sourceforge.net/) to end up with 1.4 code, but I keep getting the same error when using my library in the Processing IDE (it works fine in Eclipse or NetBeans). I asked on the Jikes mailing list and was told that the problem is probably related to Jikes not understanding the pre-compiled classes.

So, before I go through 104 classes to remove generics and  for-each loops:
Is everyone compiling their libraries using Jikes?
If not, what are you using?

Thanks,
Re: How to compile a library?
Reply #1 - May 18th, 2007, 10:53pm
 
I (and everyone else I think) build with javac the compiler that comes with the normal Sun JDK. There are instructions on how to do it here: http://dev.processing.org/libraries/
Re: How to compile a library?
Reply #2 - May 19th, 2007, 2:08pm
 
the libraries distributed with processing are built with jikes. i also sometimes build libraries for personal use with eclipse. and of course javac, as used in the howto, is a straightforward way to do it.
Re: How to compile a library?
Reply #3 - May 22nd, 2007, 8:35pm
 
Hi,

So I went through all my classes and removed all generics/autoboxing/for-each loops and recompiled using Jikes and it seems to be working fine. Finally!

Thanks for the help.
Page Index Toggle Pages: 1