Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > Installation > Windows
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Windows Problems with installing LimeWire or WireShare for Windows users


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 25th, 2002
shorebreak
Guest
 
Posts: n/a
Default 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?
Reply With Quote
  #2 (permalink)  
Old March 28th, 2002
MamiyaOtaru's Avatar
Code Mangler
 
Join Date: March 25th, 2002
Location: Wyoming
Posts: 143
MamiyaOtaru is flying high
Default

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

Last edited by MamiyaOtaru; March 28th, 2002 at 02:28 PM.
Reply With Quote
  #3 (permalink)  
Old March 29th, 2002
shorebreak
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #4 (permalink)  
Old March 29th, 2002
MamiyaOtaru's Avatar
Code Mangler
 
Join Date: March 25th, 2002
Location: Wyoming
Posts: 143
MamiyaOtaru is flying high
Default

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.
Reply With Quote
  #5 (permalink)  
Old March 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #6 (permalink)  
Old March 30th, 2002
Novicius
 
Join Date: March 30th, 2002
Posts: 1
bricriu is flying high
Default 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>
Reply With Quote
  #7 (permalink)  
Old March 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #8 (permalink)  
Old March 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #9 (permalink)  
Old March 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #10 (permalink)  
Old March 31st, 2002
Enthusiast
 
Join Date: March 31st, 2002
Posts: 49
GiggleSpit is flying high
Default

OK, those posts from "unregistered" above are from me. I have now registered.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile from source / limewire.org down? Nirvana General Linux Support 4 November 26th, 2005 06:34 PM
Compile Limewire Another Mac User New Feature Requests 5 November 4th, 2005 08:28 AM
limewire compile cmcnulty General Linux Support 1 January 3rd, 2004 07:53 PM
can't compile Limewire tylerdurden Windows 1 October 16th, 2002 09:44 AM
Compile LimeWire 1.6 like LimeWire 1.4 Unregistered General Windows Support 0 July 14th, 2001 09:20 PM


All times are GMT -7. The time now is 01:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.