Mostrando postagens com marcador Java. Mostrar todas as postagens
Mostrando postagens com marcador Java. Mostrar todas as postagens

quinta-feira, 15 de abril de 2021

Install latest version of java on linux (JDK and JRE) easily

After looking for the latest version of java to install on my linux system (Java 17 when i'm writting this), i found a really interesting tool to install any version of java available for linux with no harassment, that is SDKMan installer.

 First download and install SKDMan with the commands on terminal:

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh" 

 You can check your installation with:

sdk version

You can see more options in SDKMan site, but in this tutorial we'll install java openjdk. Run the next command to see the availlable versions.

sdk list java

 You should see something like:









Use sdk install java x.y.z-open with your choosen version. In my case: 

sdk install java 17.ea.17-open
That's it, your PATH directory is already set and you can use your java command already.

segunda-feira, 27 de novembro de 2017

Erro Na instalação do NetBeans (Fedora NetBeans Install Error)- No protocol specified Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

Quando eu tentei instalar o NetBeans no Fedora 27, aconteceu o erro durante a instalação - No protocol specified - Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main". 


No protocol specified - Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main".

Não encontrei um tutorial de forma fácil que explicasse como resolver o erro. Ele está relacionado ao servidor X e suas permissões, e esse erro deve ocorrer em qualquer distro que use Wayland como padrão.

Para conseguir instalar o NetBeans, basta executar o comando a seguir como root antes da instalação:

xhost +

Instale o NetBeans normalmente e por segurança execute o comando a seguir depois que a instalação terminar.

xhost -