fix broken java links in ubuntu after oracle -> openjdk
#!/bin/bash
cd /etc/alternatives
for f in $(ls -l| grep oracle | grep -v "\.gz" | rev | cut -d' ' -f3 | rev); do
sudo update-alternatives --auto ${f};
done;
#!/bin/bash
cd /etc/alternatives
for f in $(ls -l| grep oracle | grep -v "\.gz" | rev | cut -d' ' -f3 | rev); do
sudo update-alternatives --auto ${f};
done;
Comments