This is my implementation for Bully Algorithm
Using peer to peer architecture and java socket programming
producing one excutable file to be used with multi instances.
-
Start Command Prompt.
-
Navigate to the folder that holds your class files: C:>cd \mywork
-
Set path to include JDK’s bin. For example: C:\mywork> path c:\Program Files\Java\jdk1.8.0_25\bin;%path%
-
Compile your class(es): C:\mywork> javac *.java
-
Create jar file: C:\mywork> jar cvfe bully_algorithm.jar bully_algorithm *.class
-
run your jar: C:\mywork> bully_algorithm.jar or C:\mywork> java -jar bully_algorithm.jar
*This code is refactored with adding feature of task distribution and GUI using Swing from the follwoing repo: https://github.com/ahmeddrawy/Bully-Algorithm-Refactored.