|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
Windows Problems with installing LimeWire or WireShare for Windows users |
| LinkBack | Thread Tools | Display Modes |
| |||
compile LimeWire - need help! Hi, I need help compiling the limewire source. I have jakarta ant installed and java SDK 1.4 on a WinMe. When i run the compile scripts that come with the source code it won't work because ant is not a file or command. when i do it myself over the command line it will tell me that there is not enough memory available although i have got nothing else running (i have 256MB). in the "best case" I get an error because some class main in something doesn't exist. any ideas? |
| |||
Ok... I just copied the ant-bin dir to the core and gui path. that works. I have no trouble compiling the core. however i have problems with the gui. ---snip--- clientonly: [javac] compiling 222 source files to D:\openlimewire\gui [javac] D:\openlimewire\gui\com\limegroup\gui\library\Link Handler.java:194: unreachable statement [javac] return "<html><a href=\"\">"+LABEL_STRING+"</a></html>;; [javac] ^ [javac] Note: some input files use or override a deprecated API. [javac] Note: recompile with deprecation for details. [javac] 1 error BUILD FAILED D:\openlimewire\gui\build.xml:49: compile failed, message should have been provieded. total time: 8 sec. --- snip--- that's what I get. hope that helps. mahalo |
| ||||
it is an error in the code, at line 194 in handler.java. the line return ""+LABEL_STRING+";; can never be reached, because the method returns first. try deleting that line, or moving the return statement. Or, grab the latest version of the code, where no such errors exist. Latest cvs compiled fine for me. |
| |||
I too am having difficulty compiling. Here is what I get when I run compile.bat: ========================== D:\LimeWire\Build\limewire\core> D:\LimeWire\Build\limewire\core>set CLASSPATH=.;../gui/lib/collections.jar;../gui/lib/xerces.jar;../gui/lib/MRJToolkitStubs.jar D:\LimeWire\Build\limewire\core> D:\LimeWire\Build\limewire\core>d:\ant\bin\ant Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Bad command or file name ========================== Any Ideas? |
| |||
Help on compiling Windows LimeWire This is a response to the guy who's having trouble compiling with ant, as well as to the guy running out of env. space: in Re Ant path not found: The compile.bat script that comes with the packages is missing a REALLY valuable piece of information in it. I've tried emailing the limewire folks, but the address provided failed. Anyway, where it says "set CLASSPATH=.;lib/collections.jar;lib/core.jar" or some such, it SHOULD read "set CLASSPATH=%CLASSPATH%;.;lib/collections.jar;lib/core.jar" The %CLASSPATH% part is very important, because (assuming you've set up your Ant and JDK paths successfully), without it, you wipe the relevant directory values out, for as long as you're in that MS DOS window. When the compile script tries to run ant, it can't find it because it's not in the classpath, because compile.bat just changed it. Bothersome. Just edit the file (you'll need to do this in both the \core\ and \gui\ directories) as above, and you should be set. <HR> In re: environment space, this is easy. Right click on whatever icon you're using to get to the DOS prompt (unless you're using thr "run" interface... what rubbish!), click "Properties", the "Memory" tab, and crank some of those numbers up, up, up! (total, Initial Environment, etc) I find that an initial Env, value of 2560 is more than enough. Your mileage may vary. <HR> - Bricriu --- <I>Come from Manannan's court upon a brideless horse</I> |
| |||
Thanks. I think this is getting somewhere. It does not come back with that error, but it does still give a bad command or filename, which I may be able to figure out. However, it is doing something strange. It changes the current directory when I run the bat file. Here is what I get now: ============================= C:\WINDOWS>d:\limewire\build\limewire\core\compile .bat C:\WINDOWS> C:\WINDOWS>set CLASSPATH=.;../gui/lib/collections.jar;../gui/lib/xerces.jar;../g ui/lib/MRJToolkitStubs.jar;.;../gui/lib/collections.jar;../gui/lib/xerces.jar;.. /gui/lib/MRJToolkitStubs.jar;.;../gui/lib/collections.jar;../gui/lib/xerces.jar; ../gui/lib/MRJToolkitStubs.jar;.;../gui/lib/collections.jar;../gui/lib/xerces.ja r;../gui/lib/MRJToolkitStubs.jar;.;../gui/lib/collections.jar;../gui/lib/xerces. jar;../gui/lib/MRJToolkitStubs.jar Bad command or file name C:\WINDOWS>rem set CLASSPATH=.;../gui/lib/collections.jar;../gui/lib/xerces.jar; ../gui/lib/MRJToolkitStubs.jar C:\WINDOWS> C:\WINDOWS>d:\ant\bin\ D:\Netscape 6.2> D:\Netscape 6.2> ========================== Any ideas? |
| |||
WAIT!!! OK, now I think something has happened that is right. I changed the properties of the bat file instead of the properties of the dos prompt shortcut in my programs menu. Here is what happened: ============================= D:\LimeWire\Build\limewire\core> D:\LimeWire\Build\limewire\core>set CLASSPATH=;.;../gui/lib/collections.jar;../g ui/lib/xerces.jar;../gui/lib/MRJToolkitStubs.jar D:\LimeWire\Build\limewire\core>rem set CLASSPATH=.;../gui/lib/collections.jar;. ./gui/lib/xerces.jar;../gui/lib/MRJToolkitStubs.jar D:\LimeWire\Build\limewire\core> D:\LimeWire\Build\limewire\core>d:\ant\bin\ D:\LimeWire\Build\limewire\core> =========================== I don't see any errors, so did it work? if so, where are the compiled files? Or is that not what I just did? |
| |||
OK, one more time. I am going to register here in a minute so I can do this better. Anyway, I got it to start compiling!!! YEAH!!!! It had some errors, kept going, but in the end it failed (says so). Here is the only part of the dos console left to copy: ============================= [javac] D:\LimeWire\Build\limewire\core\com\limegroup\gnut ella\chat\InstantM essenger.java:0: inner class com.limegroup.gnutella.chat.InstantMessenger. Messa geReader:void run()@sun.tools.java.CompilerError: invalid lhs [javac] package com.limegroup.gnutella.chat; [javac] ^ [javac] D:\LimeWire\Build\limewire\core\com\limegroup\gnut ella\routing\Stati sticsRecorder.java:46: Class com.limegroup.gnutella.routing.HashMap not found in type declaration. [javac] private static HashMap statistics = new HashMap(); [javac] ^ [javac] D:\LimeWire\Build\limewire\core\com\limegroup\gnut ella\routing\Stati sticsRecorder.java:46: Class com.limegroup.gnutella.routing.HashMap not found in type declaration. [javac] private static HashMap statistics = new HashMap(); [javac] ^ [javac] 4 errors (method access$4 (MessageReader.this#1710512.this$0)) BUILD FAILED D:\LimeWire\Build\limewire\core\build.xml:43: Compile failed, messages should ha ve been provided. Total time: 43 seconds |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compile from source / limewire.org down? | Nirvana | General Linux Support | 4 | November 26th, 2005 07:34 PM |
Compile Limewire | Another Mac User | New Feature Requests | 5 | November 4th, 2005 09:28 AM |
limewire compile | cmcnulty | General Linux Support | 1 | January 3rd, 2004 08:53 PM |
can't compile Limewire | tylerdurden | Windows | 1 | October 16th, 2002 10:44 AM |
Compile LimeWire 1.6 like LimeWire 1.4 | Unregistered | General Windows Support | 0 | July 14th, 2001 10:20 PM |