Skip to content

Commit

Permalink
setup: select Java 8 after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes authored and dagar committed Jan 31, 2020
1 parent 733e73e commit a8c3944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/setup/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,16 @@ if [[ $INSTALL_SIM == "true" ]]; then
echo
echo "Installing PX4 simulation dependencies"

# java (jmavsim or fastrtps)
# Java 8 (jmavsim or fastrtps)
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
ant \
openjdk-8-jre \
openjdk-8-jdk \
;

# Set Java 8 as default
sudo update-alternatives --set java $(update-alternatives --list java | grep "java-8")

# Gazebo
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
Expand Down

0 comments on commit a8c3944

Please sign in to comment.