PDA

View Full Version : Compiling with Ant and Running (WinXP)


TheGoose
January 27th, 2007, 04:00 AM
I just downloaded and installed JDK 1.6.0 and Ant 1.7.0 and set the environment variables properly in WinXP Pro SP2. I then downloaded full source from cvs and successfully ran ant compile-all in ../core and ../gui. But the run.bat supplied in ../gui is out-of-date (actually says so in it and exits without running). Can someone please post a fixed version of this file or show me a way to run the limewire that i compiled.

I want to avoid using eclipse if at all possible. I tried compiling and runnning with it (followed the instructions in the wiki), but it gives some error messages as posted by others already in these forums and the suggested fix of removing linux/jar config file from the path doesn't work (or I couldn't get it to work somehow).

Thank you for your help.

Sam
January 27th, 2007, 04:08 AM
We received a contribution with a fixed run.bat the other day -- we'll merge it in on Monday (if not this weekend). In the meantime, we've love to add a "run" target to the ant script. I *think* it will require different targets for the different platforms, because the native libraries are different & some jars are included on some platforms that aren't included on others... but if it's possible to use a single target, that's best. If you're familiar with ant, that'd be an excellent patch. :)

Sorry about the error with running from Eclipse -- I'll see if I can't fix that early next week.

Sam
January 27th, 2007, 05:39 PM
Hi TheGoose,

The instructions for running from Eclipse are now fixed ( see http://www.limewire.org/forum/showthread.php?p=3346#post3346 ) and the run.bat script is updated. Hope this works for you.