If you are using gradle project, just add the following into your build.gradle
jar {
manifest {
attributes(
'Main-Class': 'pokerhandscorer.PokerHandScorer'
)
}
}
This creates a jar file into your \build\libs{jarFilename}.jar
java -jar /{path}/{jarFileName.jar}