• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Probleme bei NetBeans-Installation

scheng

Newbie
Hallo,
ich bin ein absoluter Anfänger in Linux, ich habe mir vor ein paar Tagen Suse 9.1 installiert. Jetzt möchte ich für meine Freundin NetBeans IDE installieren. Das Programm kann man sich als .bin-Datei runterladen.
Ich habe hier im Forum schon gesehen das die mit

Code:
chmod -x NetBeans.bin
./NetBeans.bin
installieren kann.

Wenn ich das mache, arbeitet der Rechner einige Zeit und sucht die Virtual Machine. Dann gibt es folgende Fehlermeldung:
Code:
Java(tm) Virtual Machine wird gesucht...
...................................
.................................Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

The installer is unable to run in graphical mode. Try running the installer with the -console or -silent flag.

Wenn ich es dann mit ./NetBeans.bin -console probiere, kommt das:
Code:
Java(tm) Virtual Machine wird gesucht...
...................................
.................................
-------------------------------------------------------------------------------
Welcome to the InstallShield Wizard for NetBeans IDE 3.6

The InstallShield Wizard will install NetBeans IDE 3.6 on your computer.
To continue, choose Next.

NetBeans IDE 3.6


Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Bei -silent passiert garnix. Was bedeutet die Fehlermeldung und was könnte ich machen?
 

wumpfreak

Newbie
Es scheint daran zu liegen, dass Du zwar als normaler user angemeldet bist (im KDE, Gnome, whatever), aber veruchst aus einer ROOT-Konsole ein X-Programm zu starten.

Du kannst entweder vorher das Display für root freigeben (weiß aber net wie) oder Du meldest Dich dafür direkt als root an und versuchst es nochmal.

<FLAMEWAR>Am Besten, Du benutzt gleich Eclipse :wink:</FLAMEWAR>

Hope that helps

Stephan
 

oc2pus

Ultimate Guru
To install NetBeans IDE:

1. From a command prompt, navigate to the directory that contains the installer.
2. If necessary, change the permissions to make the binary executable by typing

$ chmod +x NetBeans.bin

(replacing NetBeans.bin with the actual filename of the distribution that you downloaded).

3. Start the installer by typing

$ ./NetBeans.bin

(replacing NetBeans.bin with the actual filename of the distribution that you downloaded).

The installer will search for any installed J2SDKs and prompt you for which NetBeans IDE should use. You can specify a J2SDK at the command line, which might speed the installation process. For example:

$ ./NetBeans.bin -is:javahome path_to_your_jdk

To launch NetBeans IDE, change directories to the bin subdirectory of your installation and execute the runide.sh launcher script

als USER ausführen ;)

falls du das als root durchführst musst du deinen X-Server für root freigeben: xhost + BEVOR du root wirst!
 
OP
S

scheng

Newbie
OK vielen Dank, ich war in Ferien und kann deshalb erst jetzt antworten.
Aber läuft jetzt, danke.
 
Oben