Skip to content


Getting Java working on Ubuntu 8.04 Development Branch

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

vi /etc/environment

PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
LANG=”en_AU.UTF-8″
LANGUAGE=”en_AU:en”
LIBXCB_ALLOW_SLOPPY_LOCK=true

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)
/usr/lib/jvm/java-6-sun/bin/ControlPanel

You should see

Java Control Panel

Posted in GNU/Linux, Ubuntu.


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Maha says

    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 says

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

Continuing the Discussion

  1. Dinel’s blog » Blog Archive » Getting Netbeans to run on Ubuntu 8.04 (development version) linked to this post on February 23, 2008

    [...] (solution adapted from The Telarah Times) [...]



Some HTML is OK

or, reply to this post via trackback.



Page optimized by WP Minify WordPress Plugin