Boa noite,
Hoje pretendia instalar o netbeans 6.5.1 no Ubuntu 64 bits, baixei a versão que eu queria (C/C++) no site do netbeans. Tentava instalar o netbeans com o comando:
$ ./netbeans-6.5.1-ml-cpp-linux.sh
(PS: Tornei o mesmo executavel antes, com o comando $ chmod +x netbeans-6.5.1-ml-cpp-linux.sh)
Recebia a seguinte resposta:
x-warrior@x-warrior-desktop:~/Desktop$ ./netbeans-6.5.1-ml-cpp-linux.sh
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…
x-warrior@x-warrior-desktop:~/Desktop$
Porém a parte grafíca não acontecia. Fui olhar o log da seguinte maneira:
$ sh netbeans-6.5.1-ml-cpp-linux.sh –verbose –output out.txt
Analisando o arquivo out.txt pude ver o seguinte erro:
[2009-04-27 20:56:18.173]: at org.netbeans.installer.Installer.main(Installer.java:78)
[2009-04-27 20:56:18.174]: … show message dialog
[2009-04-27 20:56:18.174]: title: Critical Error
[2009-04-27 20:56:18.174]: message: An unexpected exception happened in thread main
[2009-04-27 20:56:18.174]:
[2009-04-27 20:56:18.174]: Exception:
[2009-04-27 20:56:18.174]: java.lang.NoClassDefFoundError:
[2009-04-27 20:56:18.175]: Could not initialize class java.awt.Toolkit
Infelizmente não sabia como corrigi-lo. Pesquisei um pouco e não achei nada que funcionasse. Então tive a brilhante idéia de instalar pelo synaptic. Instalei o netbeans que estava lá, tudo ocorreu normalmente. Executei o mesmo e fui criar um novo projeto, me deparo que a versão instalada era a para Java. Me decepcionei, afinal precisava mesmo da versão para C/C++. Quando fiz a instalação pelo synaptic percebi que existiam muitas dependencias, tentei instalar novamente a versão para C e vua-la. Consegui instalar a mesma. (Meio na gambiarra eu sei, afinal fiquei com 2 versões de netbeans uma para C e outra para Java, mas sem problemas já que eu utilizo as duas.)
Então caso você queira instalar a versão para C/C++, instale a versão de Java, ou suas dependencias somente e em seguida instale o para C/C++ que tudo vai ocorrer bem.
Ah, para um melhor entendimento editei o menu (Botao direito sobre Applications – edit menu), ele é muito intuitivo então não vou entrar em mais detalhes. Mas no mesmo editei os Netbeans 6.5 e 6.5.1 para Netbeans 6.5 (Java) e Netbeans 6.5.1 (C/C++). Assim não corro o problema de esquecer e abrir a versão errada perdendo tempo.
Espero que essa gambiarra dica ajude vocês.
Abraços,
Matheus
PS: Se alguem tiver a solução decente para conseguir instalar o Netbeans me avise que eu posto aqui. Ou caso eu descubra, postarei também.
Hi there to every one, the contents present at this website are genuinely awesome for people experience, well, keep up the nice work fellows.
Статья содержит информацию, подкрепленную примерами и исследованиями.
Автор старается не высказывать собственного мнения, что способствует нейтральному освещению темы.
**mitolyn official**
Mitolyn is a carefully developed, plant-based formula created to help support metabolic efficiency and encourage healthy, lasting weight management.
I’ve been surfing online greater than 3 hours nowadays, but I by no means discovered any
fascinating article like yours. It is beautiful
worth sufficient for me. In my opinion, if all web owners
and bloggers made just right content material as you did, the internet might be a lot more helpful than ever before.
I used to be recommended this blog by way of my cousin. I’m now not positive whether this put up is written via him as nobody else recognize such precise about my difficulty. You’re amazing! Thank you!
Автор представил четкую и структурированную статью, основанную на фактах и статистике.
It’s an awesome post in support of all the online users; they will obtain benefit from it I am sure.