How to install server

Step 1: Download server JAR

Download the latest server JAR from GitHub:<br/>`https://github.com/CorporateFounder/unitedStates_storage/raw/master/target/unitedStates-0.0.64-SNAPSHOT.jar`

Download JAR screenshot
Step 2: Copy resources folder

After you have the JAR, run it to create the `resources` folder locally:<br/>`java -jar unitedStates-0.0.64-SNAPSHOT.jar`<br/>Then copy the entire `resources` folder into your server’s `/server/resources` directory.

Copy resources screenshot
Step 3: Configure system time (Windows)

Open Command Prompt as administrator and run:
1) `net stop w32time`
2) `w32tm /config /manualpeerlist:"0.ch.pool.ntp.org,1.ch.pool.ntp.org" /syncfromflags:manual /reliable:yes /update`
3) `net start w32time`
4) `w32tm /resync`
Wait ~5 minutes then `w32tm /query /peers`.

Step 4: Start your Java server

Run server with your host and port, for example:<br/>`java -Dserver.port=82 -Dserver.address=194.87.236.238 -jar unitedStates-0.0.64-SNAPSHOT.jar`<br/>Make sure you have JDK 19+ installed.

Start server screenshot
Step 5: Verify server integrity

Open your wallet and point it to `http://:/testCalculate`.
If the console returns `[] []` then blockchain is in sync. Otherwise re‑copy `resources` folder and repeat.

Step 6: Ubuntu setup (optional)

On Ubuntu 22.04:
`sudo apt update && sudo apt install openjdk-19-jre-headless screen ufw`
`sudo ufw allow /tcp && sudo ufw enable`
Copy JAR + `resources` into `/server`, then:
`cd /server` && `screen java -jar unitedStates-0.0.64-SNAPSHOT.jar`.