So you’ve downloaded a zip file containing UP2P (or P2Pedia, the distribution of U-P2P containing only the P2Pedia wiki system). Now what?
A – Binary distribution
If you just want to run the prepackaged U-P2P distribution, it’s easy, all you need is the Java JDK version 1.6 or later.
Steps:
1 – Extract the contents the of the zip file to any directory of your choice. For example, to a new directory on the desktop called “UP2P” .
2 – Check that you have Java installed, and that the JAVA_HOME environment variable points to the folder containing your JDK.
For example, a typical location under Windows would be: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_27
For example, a typical location under Windows would be: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_27
3 – Open the folder where you extracted U-P2P. Then inside this folder, open the folder called “Tomcat”, and inside the Tomcat folder, open the “bin” folder. Run the file “startup.bat” (under windows) or “startup.sh” under linux or Mac-OS.
4 – The Apache Tomcat server will now fire up, and you can access your local UP2P node using any web browser (UP2P works best with Firefox or Chrome — there have been some minor issues with Internet Explorer). Connect your browser to the following URL: http://localhost:8080/up2p/.
5 – The U-P2P home page contains lots of information to get started!
B – UP2P source distribution
C – Configuration
For now please see the U-P2P user guide.
D – Troubleshooting
Not working ?
Here are the most common problems and their solutions:
1 – Problem: It won’t even start. I double click on “startup.bat” and nothing happens. A window appears for a fraction of a second then disappears again.
Solution: Your JAVA_HOME environment variable probably isn’t set properly. See the user guide for more details about setting environment variables ( the user guide is a pdf document packaged in the UP2P zip file).
2 – Problem: Tomcat starts then closes with an error when it tries to bind to port 8080.
Solution: Tomcat is configured to run on port 8080. Your port 8080 may be in use. Change the tomcat server configuration to run on another port.
3 – Problem: I can’t find anything in the network.
Solution: Connect to other nodes.At the top right corner of the screen there’s a link saying “Connected to [number] peers”.
Connect to your friends. Ask them for their IP and port, and add them to your hostcache, in order to connect to them.
Connect to your friends. Ask them for their IP and port, and add them to your hostcache, in order to connect to them.