- apt
$ sudo apt update
$ sudo apt install default-jre default-jdk build-essential git curl
- sdkman
$ curl -s http://get.sdkman.io | bash
$ source ~/.sdkman/bin/sdkman-init.sh
$ sdk install gradle
- XcodeとCommand Line Tools
$ xcode-select --install
$ brew update
$ brew cask install java
$ brew install git gradle
$ git clone --depth 1 https://github.com/kosakkun/MM-Tester.git
$ cd MM-Tester
$ gradle build
例)Traveling Salesmanのjavaのサンプルを実行する場合.
$ cd TravelingSalesman/solver/java
$ sh run.sh
こことかに貼り付けて読んでください.
.
├── README.md
├── build.gradle
├── build
│ └── libs
│ └── Tester.jar
├── tester
│ └── Tester.java
└── solver
├── cpp
│ ├── run.sh
│ └── main.cpp
├── java
│ ├── run.sh
│ └── Main.java
└── python
├── run.sh
└── main.py