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 *

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