![]() |
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? |
Ant is not it your path, the system does not know where to find it. I had the same problem, so I edited the compile.bat file Now, where it used to say 'ant', it says 'e:\progra~1\jakartaant\bin\ant' Just change your bat file so it point directly to ant. Also, java was not in my classpath. to fix this, I edited the file in my E:\Program Files\jakartaAnt\bin directory called ant.bat I added two lines: rem JAVA_HOME must be set set JAVA_HOME=e:\progra~1\jdk130 so ant would know exactly where java is. Yours of course will be different. since java is likely in your path already, you will most likely only need to edit compile.bat, but if you get the message "java is not a file or command" you will need to edit ant.bat as well For some class main in something, it would be helpful to know what 'something' is :) -Jason ****EDIT**** changed the path to ant. Wherever you put it, there shoud be a 'bin' in the path |
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.:cool: 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 |
OK, those posts from "unregistered" above are from me. I have now registered. |
All times are GMT -7. The time now is 02:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2020 Gnutella Forums.
All Rights Reserved.