-
Notifications
You must be signed in to change notification settings - Fork 5
Setting up Javacard Toolchain
chrisleach edited this page Oct 30, 2019
·
6 revisions
We are going to setup the toolchain on Ubuntu 18.04.2 LTS. This guide should also work on earlier versions of Ubuntu.
First of all, we need to install couple of prerequisites:
$ sudo apt install git ant openjdk-8-jdk
- git – for downloading code from GitHub repository
- ant – it’s like a make but for building Java projects
- openjdk-8-jdk - java development kit, needed for compiling Java code
Prerequisites:
- JDK 8 by Oracle or OpenJDK
- AdoptOpenJDK - https://adoptopenjdk.net/index.html
- Ant - https://ant.apache.org/bindownload.cgi (download apache-ant-xxxxxx-bin.zip)
- Ant comes without an installer. You have to extract the zip file.
- Git - https://gitforwindows.org/.
Setup Windows environment variables:
- JAVA_HOME - pointing to a folder where JDK is installed, (example: C:\Program Files\AdoptOpenJDK\jdk-8.0.212.03-hotspot)
- ANT_HOME - point to folder where Ant is extracted to (example: C:\Users\LM\Downloads\apache-ant-1.10.5-bin\apache-ant-1.10.5/)
- Add ant/bin folder to path
Note: After changing environment variables, terminal needs to be restarted for changes to take effect.
Open up a PowerShell terminal and run ant command.
You should see a response like:
PS C:\Users\LM> ant
Buildfile: build.xml does not exist!
Build failed
PS C:\Users\LM>
Great, now we have verified that ant is working from command line.