This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Not sure if this is the correct location for this question but here I thought I would give it a shot.
I am trying to run visual GC on linux. I keep getting the error below and can't find any help from google. Does anyone know what I need to do to get the program to work? I set the display to be :0 and "" and it doesnt work.
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable.
Are you trying to start it from a shell or the gui console. Sounds like X and your window manager may not be running. Run the command ps -ef | grep "X11" and see if you get any X11 lines in the resulting process list. If not, X isn't running. I believe you can run the startup script startx which will kick it off. I'm not in front of a machine now, so I'm not sure what directory the startup script is in. I believe you also have to be root to start it. On redhat distro's, the gui login screen is on the alt-7 multiscreen.
If that doesn't work, check that X is installed. You might want to do this first if you're not sure. On Redhat distro's, you can execute the command rpm -q -a | grep -i X11. If you get some output, then it is probably installed. I'm not familiar with the other distro's, so I won't be much help in that regard.
I assume you're running X and your window manager on the console.?.? If so, try setting your DISPLAY env variable as follows: export DISPLAY="localhost:0.0" and then run gc. If your running X on an X terminal, change localhost to the ip address of the X terminal.