nodechan

decentralized peer-to-peer anonymous messageboard client
git clone git://squid-tech.com/nodechan.git
Log | Files | Refs | README

commit 5804b0cc7ab8b02f60c35108f4c20bd3c0a30819
parent 7aaedf2e72c0ca16a4fd49e7574fcb0764bf9326
Author: joshiemoore <jxm5210@g.rit.edu>
Date:   Fri,  9 Aug 2019 21:22:31 -0400

Add jarfile building

Diffstat:
Abuildjar.sh | 3+++
Amanifest.mf | 3+++
Mrun.sh | 2+-
Msrc/ChanPost.java | 2++
Msrc/ChanThread.java | 2++
Msrc/IncomingThread.java | 2++
Msrc/NodeChan.java | 5++++-
Msrc/OutgoingThread.java | 2++
Msrc/Peer.java | 2++
9 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/buildjar.sh b/buildjar.sh @@ -0,0 +1,3 @@ +./build.sh +sudo jar cfm NodeChan.jar manifest.mf build/ lib/* +sudo chmod +x NodeChan.jar diff --git a/manifest.mf b/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: com.squidtech.nodechan.NodeChan +Class-Path: build/ lib/WaifUPnP.jar diff --git a/run.sh b/run.sh @@ -1 +1 @@ -sudo java -cp build/:lib/* NodeChan -nogui +sudo java -cp build/:lib/* com.squidtech.nodechan.NodeChan -nogui diff --git a/src/ChanPost.java b/src/ChanPost.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.util.Random; import java.net.InetAddress; diff --git a/src/ChanThread.java b/src/ChanThread.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.util.Random; import java.util.ArrayList; diff --git a/src/IncomingThread.java b/src/IncomingThread.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.net.DatagramSocket; import java.net.DatagramPacket; import java.net.InetAddress; diff --git a/src/NodeChan.java b/src/NodeChan.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; @@ -399,7 +401,8 @@ public class NodeChan { } } else { // TODO: implement gui... - System.out.println("GUI not implemented yet. Run with option -nogui."); + System.out.println("\nGUI not implemented yet. Run with option -nogui."); + System.exit(0); } } diff --git a/src/OutgoingThread.java b/src/OutgoingThread.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.net.DatagramSocket; import java.net.DatagramPacket; import java.net.SocketException; diff --git a/src/Peer.java b/src/Peer.java @@ -1,3 +1,5 @@ +package com.squidtech.nodechan; + import java.net.InetAddress; import java.net.UnknownHostException;