Ir ao conteúdo

Ubuntu com Netbeans Java e C

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.

Publicado emAprendendoCLinuxSoftware Livre

240 Comentários

  1. **mitolyn official**

    Mitolyn is a carefully developed, plant-based formula created to help support metabolic efficiency and encourage healthy, lasting weight management.

  2. 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.

  3. Автор представил четкую и структурированную статью, основанную на фактах и статистике.

  4. Читателям предоставляется возможность самостоятельно изучить представленные факты и сделать информированный вывод.

  5. Thank you for every other informative blog. Where else may I get that kind of information written in such a perfect means? I have a venture that I’m simply now running on, and I have been on the look out for such information.

  6. I always spent my half an hour to read this website’s content all the time along with a mug of coffee.

  7. all the time i used to read smaller articles or reviews which also clear their motive, and that is also happening with this post which I am reading at this place.

  8. Важно отметить, что автор статьи предоставляет информацию с разных сторон и не принимает определенной позиции.

  9. Мне понравилась систематическая структура статьи, которая позволяет читателю легко следовать логике изложения.

  10. Я хотел бы поблагодарить автора этой статьи за его основательное исследование и глубокий анализ. Он представил информацию с обширной перспективой и помог мне увидеть рассматриваемую тему с новой стороны. Очень впечатляюще!

  11. Have you ever thought about including a little bit more than just your articles? I mean, what you say is valuable and everything. Nevertheless imagine if you added some great pictures or video clips to give your posts more, “pop”! Your content is excellent but with pics and clips, this website could definitely be one of the best in its field. Amazing blog!

  12. Great post. I was checking constantly this blog and I’m impressed! Extremely useful info specifically the closing section 🙂 I care for such information much. I was seeking this particular information for a long time. Thank you and best of luck.

  13. Автор старается представить информацию объективно и позволяет читателям самостоятельно сделать выводы.

  14. I don’t even know how I ended up here, but I thought this post was great. I don’t know who you are but certainly you are going to a famous blogger if you aren’t already 😉 Cheers!

  15. Vavada to znane kasyno online, które działa również w Polsce. Strona przyciąga graczy szeroką ofertą gier, przejrzystymi warunkami i obsługą w PLN (zł). Bonus powitalny oraz intuicyjna obsługa sprawiają, że platforma zdobyła popularność wśród polskich użytkowników.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *