Note: These instructions assume that you already have Maven and Java 11 installed. If not, please install these first before following these steps.
- Create a new folder, with a descriptive name (e.g.
project-3) and go into this folder. - Copy the
pom.xmlfile to the root of this folder. - Create new folders within this folder, with this structure:
src/main/kotlin/com/cs6385 - Copy the
HeuristicNetworkTop.kt,Runner.kt,WorstToBestAlg.kt,GeneticAlg.ktandCoordinate2D.ktfiles to this folder. - Go back to the root project-3 folder and run
mvn clean package in the terminal. 6. A new target folder should have been created after the build is successful. Go into this target folder and run in the terminal:
java -jar project3-1.0-SNAPSHOT.jar <nValue>