Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Compiling Problem (https://www.gnutellaforums.com/development-open-discussion/85756-compiling-problem.html)

comdata55 July 3rd, 2008 09:55 AM

Compiling Problem
 
Hi, I am brand new to this. I downloaded the source and built it. It compiled and ran perfectly. I then changed something in the gui and rebuilt and restarted, it worked. I then made another change and now any changes i make do show after rebuilding and restarting. is there a file cache or something that would stop code changes from compiling? or am i missing something?

GregorK July 3rd, 2008 11:43 AM

Try to do:
ant clean buildAll
It will delete all compiled files and completely rebuild from source.

arne_bab July 20th, 2008 11:46 PM

It doesn't build for me either:

Log:

Quote:

compileSource:
[javac] Compiling 750 source files to /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/output/classes
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:45: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.CheckForNull;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:46: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.NonNull;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/MemoryFile.java:30: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.NonNull;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/gui/macosx/GURLHandler.java:29: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.SuppressWarnings;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/prefs/OldCfg.java:43: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.SuppressWarnings;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/prefs/core/PrivateNetworkConstants.java:25: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.SuppressWarnings;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/query/QueryMsgToWriterMonitor.java:29: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.NonNull;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/utils/IOUtil.java:38: package edu.umd.cs.findbugs.annotations does not exist
[javac] import edu.umd.cs.findbugs.annotations.SuppressWarnings;
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:101: cannot find symbol
[javac] symbol : class NonNull
[javac] location: class phex.download.swarming.SWDownloadFile
[javac] @NonNull
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:597: cannot find symbol
[javac] symbol : class CheckForNull
[javac] location: class phex.download.swarming.SWDownloadFile
[javac] @CheckForNull
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:633: cannot find symbol
[javac] symbol : class CheckForNull
[javac] location: class phex.download.swarming.SWDownloadFile
[javac] @CheckForNull
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/swarming/SWDownloadFile.java:664: cannot find symbol
[javac] symbol : class NonNull
[javac] location: class phex.download.swarming.SWDownloadFile
[javac] @NonNull
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/MemoryFile.java:679: cannot find symbol
[javac] symbol : class NonNull
[javac] location: class phex.download.MemoryFile
[javac] private void releaseMultiBlockedAllocScope(@NonNull DownloadScope unblockScope,
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/download/MemoryFile.java:680: cannot find symbol
[javac] symbol : class NonNull
[javac] location: class phex.download.MemoryFile
[javac] @NonNull SWDownloadCandidate downloadCandidate)
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/gui/macosx/GURLHandler.java:108: cannot find symbol
[javac] symbol : method justification()
[javac] location: @interface java.lang.SuppressWarnings
[javac] @SuppressWarnings( value="NM_METHOD_NAMING_CONVENTION", justification="native method")
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/prefs/OldCfg.java:55: cannot find symbol
[javac] symbol : method justification()
[javac] location: @interface java.lang.SuppressWarnings
[javac] @SuppressWarnings( justification="Obsolete class will be dropped in the future.")
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/query/QueryMsgToWriterMonitor.java:59: cannot find symbol
[javac] symbol : class NonNull
[javac] location: class phex.query.QueryMsgToWriterMonitor
[javac] public QueryMsgToWriterMonitor( @NonNull Writer outputWriter )
[javac] ^
[javac] /home/arne/Dokumente/1-noch-zu-backuppen/Programme/phex/trunk/src/main/java/phex/prefs/OldCfg.java:55: annotation java.lang.SuppressWarnings is missing value
[javac] @SuppressWarnings( justification="Obsolete class will be dropped in the future.")
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 18 errors
Missing packages?

arne_bab July 21st, 2008 03:50 AM

I fixed it in SVN.

At least for me it builds again.

Thanks for the headstart, Gregor!

Svallen November 26th, 2008 07:42 AM

Hello people,

I just downloaded phex source, and followed the installation guide from the phex-wiki, but i have a problem when trying to run phex using "java -jar target/phex.jar". I get an Exception from org.xsocket.datagram.idatagramhandler - NoClassDefFoundError.


Does anyone have a clue about this?


http://img440.imageshack.us/img440/2...rrorqa3.th.jpg

Svallen November 26th, 2008 07:45 AM

1 Attachment(s)
I got this problem when i run Phex with java, can anyone help?

http://www.gnutellaforums.com/attach...ererrorqa3.gif

Thanks.

GregorK November 26th, 2008 07:51 AM

Please try to update again from SVN and rebuild.

Svallen November 26th, 2008 07:58 AM

Thanks :) gonna try that.

Svallen November 26th, 2008 08:15 AM

Excellent, it works perfectly now! thank you very much!

GregorK November 26th, 2008 10:27 AM

Great, I would be interested what your experience is with the current SVN build. There have been many changes under the hood and I like to know if they make a good impression and if they are stable enough to be released.

Svallen November 27th, 2008 01:48 AM

Sure thing,

So far I have build it, and let it run for some 20 hours no bugs yet. It took a while to get decent ultrapeers tho, I had to add some manually, but i guess thats the nature of gnutella network.


I disabled compression in the code :) just to see the protocol, and it works fine.

Im a bit concerned with the number of fake results, it seems everytime i run a search i get back searchstring+".zip" or +".mmp3" all of sizes (74-75 k) totally bogus results :)

Anyway, the phex is very nice and the code is extremely well written.

For phex alone, Id say we are close to release of new build.

GregorK November 27th, 2008 03:13 AM

Thanks for the report.
Spam is a big problem today in the net and a never ending fight against it.
I have a few changes in queue and after that I think the next release should be ready.

Svallen November 27th, 2008 04:12 AM

Any plans for fighting spam?

Is there any way to tell if you hit a malicious cluster of nodes?

GregorK November 27th, 2008 08:33 AM

Thats very difficult. All we do is try to maintain lists of faulty SHA1 keys and bad IPs.
But when there are random SHA1 and dialup IPs used, there is not much we can do.

arne_bab November 27th, 2008 10:14 AM

If you want to have a look at a really powerful way to fight spam, you can check the (discontinued) Credence project.

They used decentral voting and object reputation for shared files and implemented that in a LimeWire, but LimeWire never added their code to the mainline, so the project eventually died.

When I tested it back then, it worked quite well, but it suffered from the problem that it needed to download the initial client ID for signing object votes from a server (to avoid people running a really huge number of instances to kill the algorithm).

They were working on moving from central key generation to decentralized crypto-puzzles short before they stopped updating.

The project is still available at Credence: Thwarting P2P Pollution , if you'd like to give it a look.

PhexAveiro February 20th, 2009 01:43 PM

Hi there,

I just downloaded it with svn. Now, I want to integrate it into Eclipse 3.4. However, there are some problems of compiling.
e.g. import org.apache.commons.httpclient.X cannot be resolved etc.

I followed also(http://www.phex.org/wiki/index.php/B...rom_Subversion):
1) With TortoiseSVN installed, from the context menu in windows -> Checkout, I entered as an URL: https://phex.svn.sourceforge.net/svn...ex/phex/trunk/
2) Copied mvn.exe to the phex folder and executed: maven package.
3) got the error:

Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.6.0_07\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

at org.apache.maven.plugin.AbstractCompilerMojo.execu te(AbstractCompiler
Mojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(Compi lerMojo.java:114)
at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPlugi
nManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(Defa
ultLifecycleExecutor.java:559)
... 16 more


JAVA_HOME is set to the above C:\Program Files ... path.

Any help ?

Regards,

GregorK February 20th, 2009 03:49 PM

First of all you need to have a JDK installed.. JRE is not enough...

Then I recommend you use a Maven 2 plugin for eclipse:
Installation - q4e - Installation of the plugin. - Google Code

Try again if it works better now.

PhexAveiro February 25th, 2009 12:49 AM

JDK helped. Thank you.


All times are GMT -7. The time now is 08:05 PM.

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.