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

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

2 Comments

  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!!!!!!!

    Reply
  2. james

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

    Reply

Trackbacks/Pingbacks

  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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…