Skip to content

Commit

Permalink
Make sure to use Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
kirchhof committed May 31, 2024
1 parent a370ddf commit 7c80e6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions installLinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ cd dependencies
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:openjdk-r/ppa
sudo apt-get install -y openjdk-11-jdk
sudo apt-get install -y g++ git make cmake ninja-build mosquitto-dev libmosquitto-dev curl maven \
openjdk-11-jdk python3 python3-pip mosquitto-clients libssl-dev libpq-dev \
protobuf-compiler libprotobuf-dev python3-protobuf
python3 python3-pip mosquitto-clients libssl-dev libpq-dev \
protobuf-compiler libprotobuf-dev python3-protobuf zip unzip

sudo apt-get install -y python3-paho-mqtt || pip3 install paho-mqtt

# Make sure to use Java 11
sudo update-java-alternatives -s $(update-java-alternatives -l | grep java-1.11.0-openjdk | awk 'NR == 1 {print $3}')

# Install Docker
if ! command_exists docker && ! [ "$SKIPDOCKER" ]
then
Expand Down

0 comments on commit 7c80e6d

Please sign in to comment.