mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
setup: select Java 8 after installation
This commit is contained in:
parent
733e73e185
commit
a8c3944485
@ -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 -
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user