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

195 Comentários

  1. Sprawdź legalny salon gier Totalizatora Sportowego — bonus powitalny do 13 750 zł! Graj legalnie z nadzorem regulacyjnym — zainstaluj teraz i aktywuj pakiet powitalny! Salon Gier na Automatach oferuje darmowe spiny — pod nadzorem urzędu. Legalna rozrywka — Salon Gier na Automatach zapewnia szyfrowanie SSL i program lojalnościowy. Marzysz o darmowych spinach? Oficjalna aplikacja z licencją daje Ci powitalny pakiet — pobierz teraz! Wybierz legalny salon — Aplikacja z licencją oferuje bonus aż do 10 000 zł i bezpieczeństwo płatności. Zacznij grę bezpiecznie — pobierz aplikację i odbierz swój bonus!

    letterboxd.com

  2. Einen angenehmen Start in den Urlaubstag bietet entweder ein Frühstücksbuffet oder ein Frühstück im Zimmer.
    Das Dekor in schwarz und beige schafft den perfekten Kontrast mit den immer kurvigen Linien des
    Hotels und des Swimmingpools. Der internationale Flughafen von Madeira
    befindet sich nur 20 km entfernt. Im Tal Curral das Freiras zeigt sich
    das Landesinnere von Madeira mit seinen atemberaubenden Ausblicken auf die umliegenden Wälder von seiner schönsten Seite.Dieses Hotel befindet
    sich nur fünf Minuten zu Fuß vom Zentrum Funchals entfernt.
    Lassen Sie sich in den vier Restaurants und Bars mit
    Panoramablick verwöhnen, spielen Sie eine Partie auf dem Tennisplatz oder nutzen Sie den direkten Zugang zum Casino da Madeira, inklusive Spielzimmer, Shows und Diskothek.
    Es befindet sich direkt am Kreuzfahrthafen in der
    Bucht von Funchal, nur fünf Minuten zu Fuß vom
    Stadtzentrum und dem Mittelpunkt des gesellschaftlichen und kulturellen Lebens
    entfernt.Mit seiner Lage direkt am Meer ist das
    Hotel eines der beliebtesten der Insel Madeira.
    Die Gäste können den Meerblick von Balkon oder Terrasse genießen. Im Apartmenthotel werden verschiedene Wellnessangebote wie Spa, Sauna, Hammam, Schönheitssalon, Massage-Anwendungen und Solarium offeriert.

    Neben Innen- und Außenpools gibt es einen Kinderbadebereich.
    Die Unterbringung verfügt über ein Restaurant und eine
    Bar.
    Das Pestana Casino Park Hotel & Casino bietet Ihnen anspruchsvolle und moderne Zimmer in Funchals Park Santa Caterina.
    5-Sterne-Hotel mit Außenpool Wir möchten gerne ein ruhiges Zimmer in den oberen Etagen,
    und ist ein Wasserkocher auf dem Zimmer ??

    References:
    https://online-spielhallen.de/entdecken-sie-den-1red-casino-aktionscode-ihr-schlussel-zu-exklusiven-vorteilen/

  3. Crown Towers Perth represents the pinnacle of hotel luxury in Western Australia.
    Discover world-class accommodation, breathtaking views, and
    unparalleled service at Perth’s most prestigious five-star hotel,
    nestled within the iconic Crown Perth resort complex.

    Dine at Nobu, Silks, Rockpool Bar & Grill, and
    more — from fine dining to casual eats within the casino
    precinct. Crown is home to three luxury hotels — Crown Towers
    Perth, Crown Metropol, and Crown Promenade — each offering unique comfort for
    every type of traveler. Every guest is treated like royalty, with multilingual support, 24/7 security, and quick service at every game station.
    Experience the ultimate blend of riverside elegance, relaxation, and five-star service at Crown Perth’s luxury hotels and world-class spa facilities.
    Whether you’re playing Texas Hold’em or Omaha, you’ll find a professional environment with skilled dealers, generous prize pools,
    and a welcoming player base. Indulge at Crown Spa Perth with therapeutic massages, tranquil pools,
    saunas and world-class facilities. It’s a resort precinct with luxury hotels, a stunning day spa,
    award-winning restaurants, and riverside bars — all located just minutes from
    the Perth CBD. The pokies (electronic gaming machines) dominate player engagement at
    Casino Perth, with progressive jackpot games attracting significant attention due to
    their substantial prize pools. Casino Perth offers a sophisticated rewards program through
    Crown Rewards, providing members with exclusive benefits and
    promotional opportunities.
    Special events include taking a chance on winning an opportunity to appear on stage in a Hollywood Blockbuster, to take down thousands in cash, or win a $10,000 Hollywood trip.
    One of the many culinary highlights, Neil Perry’s award-winning restaurant
    Rockpool Bar & Grill Perth, focuses on serving beef in an exemplary manner.
    One of the newest additions, Villa Thriller, offers innumerable opportunities to win. Like other Crown hotels and casinos, the emphasis is
    on quality and quantity with the objective being to ensure that each
    guest has a great time.

    References:
    https://blackcoin.co/casino-club-erfahrungen/

  4. To play in demo mode registration is not required,
    but to play for real money, you must register and make
    a deposit on your game balance. Anyone can play and win big money in this game!
    It is easy to start playing Plinko – you just need to go to a reliable casino website, register, make a bet and let fortune take care of the winnings.

    This means that any player can enjoy the game, have fun and make good money.
    Casino players and fans of gambling like to play for fun, without big risks and complicated rules,
    the main thing emotions and excitement. Although the game has
    no freespools, bonuses, but the percentage return of the slot to the player (RTP) reaches 99%.

    Player2 couldn’t believe their eyes when a casual evening gaming session resulted
    in a $43,500 windfall. ✨ The satisfying sound of the puck dropping through
    the pegs has become the soundtrack to success for many of our most celebrated winners.
    Pretty fair compared to many games, right? Your
    choice of pin density and betting style can influence
    this experience significantly in Plinko. The 98% RTP of Plinko casino is quite generous
    in the gambling world, but remember – Lady Luck doesn’t care about statistics during your two-hour gaming session! Anything can happen – that’s the
    thrill of the game!

    References:
    https://blackcoin.co/trusted-aussie-online-casinos-licensed-high-paying-picks/

  5. Эта статья является примером качественного исследования и профессионализма. Автор предоставил нам широкий обзор темы и представил информацию с точки зрения эксперта. Очень важный вклад в популяризацию знаний!

  6. If some one wishes expert view concerning blogging and site-building then i advise him/her to pay a visit this web site, Keep up the good work.

  7. Every weekend i used to pay a quick visit this website, because i wish for enjoyment, for the reason that this this site conations genuinely pleasant funny material too.

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

  9. Статья предоставляет разнообразные исследования и мнения экспертов, обеспечивая читателей нейтральной информацией для дальнейшего рассмотрения темы.

Deixe um comentário

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