Skip to content

Instantly share code, notes, and snippets.

@georgezim85
Created October 8, 2020 15:09
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 georgezim85/5afa7fd19b16538c3b3ae8e9b6bacc35 to your computer and use it in GitHub Desktop.
Save georgezim85/5afa7fd19b16538c3b3ae8e9b6bacc35 to your computer and use it in GitHub Desktop.
Bash script de instalação do Apache NetBeans 12.1
#!/bin/bash
set -e
# Instalar OpenJDK:
sudo apt-get update
sudo apt-get install openjdk-13-jdk
# Baixar Netbeans Apache:
wget http://mirror.nbtelecom.com.br/apache/netbeans/netbeans/12.1/Apache-NetBeans-12.1-bin-linux-x64.sh
# Atribuir permissão de execução:
sudo chmod +x Apache-NetBeans-12.1-bin-linux-x64.sh
# Executar instalador:
./Apache-NetBeans-12.1-bin-linux-x64.sh
@georgezim85
Copy link
Author

georgezim85 commented Oct 8, 2020

Depois, abra o Netbeans e:

  1. File -> Open Project ...
  2. Navegue até o diretório do projeto e confirme.
  3. Botão direito no nome do projeto -> Properties -> Libraries -> Manage Platforms... -> Add Platform...
  4. Deixe marcado Java Standard Edition, clique Next.
  5. Navegue até o diretório /usr/lib/jvm/java-13-openjdk-amd64, clique Finish.
  6. Na categoria Libraries, no dropdown do Java Platform, selecione o JDK adicionado.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment