Getting Java working on Ubuntu 8.04 Development Branch

Written by James McDonald

February 14, 2008

Java will not run unless I do the following hack which will set the environment variable system wide.

vi /etc/environment


add the LIBXCB… line, save and then log out and back in and you should be able to run java apps.

To test run the following (edit to taste if you have sun 5)

You should see

Java Control Panel


  1. Maha

    when i typed the first line above
    i got the PATH=”/usr/local/…etc
    “/etc/environment: [readonly] 1 line, 79 characters

    how can i edit this!!!!!!!

  2. james

    sudo vi /etc/environment will get you out of trouble.



  1. Dinel’s blog » Blog Archive » Getting Netbeans to run on Ubuntu 8.04 (development version) - [...] (solution adapted from The Telarah Times) [...]

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Docker on Fedora 32

Docker on Fedora 32

Commands to run to get moby-engine running on Fedora 32 # as root or sudo'd dnf install grubby grubby...

PDF Poster

PDF Poster

Start with a wide long image. This is just a screen shot of my desktop. widescreen.png Convert it to postscript using...