Skip to content

Instantly share code, notes, and snippets.

@sampottinger
Created June 8, 2023 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sampottinger/df9fe30855361b0b042a8c2edfb13d34 to your computer and use it in GitHub Desktop.
Save sampottinger/df9fe30855361b0b042a8c2edfb13d34 to your computer and use it in GitHub Desktop.
# Setup a new VM (like gitpod) for building Processing-java
# Released under MIT license
yes | sudo apt-get install rsync
cd /tmp
wget https://dlcdn.apache.org//ant/binaries/apache-ant-1.10.12-bin.zip
unzip apache-ant-1.10.12-bin.zip
wget https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.5%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.5_8.tar.gz
tar -xvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.5_8.tar.gz
mv jdk-17.0.5+8/ ~
mv apache-ant-1.10.12 ~
cd ~
echo 'export ANT_HOME="/home/gitpod/apache-ant-1.10.12"' >> .bash_profile
echo 'export PATH="$PATH:/home/gitpod/apache-ant-1.10.12/bin"' >> .bash_profile
echo 'export JAVA_HOME="/home/gitpod/jdk-17.0.5+8"' >> .bash_profile
source .bash_profile
cd /workspace/processing4/build
ant clean
ant test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment