I downloaded the source code and I was able to import and compile everything
fine with Eclipse (2.0.1 under W2K) using these steps:
- Create a Java Project in Eclipse
- Import .java and resource files (gif, png, html, jflex, tpl) files from
freenet/src
- Added jars with the following order
- freenet-ext.jar
- jsse.jar from JRE's lib subdirectory
- junit.jar from wherever you have installed the latest JUnit distribution
- Change "assert" to "assertTrue" in HeapTest.java and SkiplistTest.java
Note that I haven't tried to run anything or make a jar file (the next
steps).
To get rid of most of the warnings (close to 100) due to usage of deprecated
methods:
- references to: freenet.FieldSet.add(java.lang.String, freenet.FieldSet)
need to be replaced with put
- references to: freenet.FieldSet.add(java.lang.String, java.lang.String)
need to be replaced with put
- references to: freenet.crypt.Util.byteArrayToMPI(byte[])
need to be replaced with new BigInteger(1, <whatever was the
parameter>)
- references to: java.net.URLEncoder.encode(java.lang.String)
need to be replaced with encode(<whatever was the parameter>,
"UTF-8")
and the exception cought
- references to: freenet.support.Fields.longToString(long)
need to be replaced with longToHex
- references to: freenet.support.Fields.stringToLong(java.lang.String)
need to be replaced with hexToLong
- references to: freenet.crypt.DSASignature.writeAsField()
need to be eliminated as method calls (use the object alone) or
replaced with toString()
[toString() is prefered]
A few more deprecation warnings are caused by changes to the Servlet 2.1
API.
My next step is doing some reading of code... :)
Doc
_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl