Find the answer to your Linux question:
Results 1 to 6 of 6

Thread: Java won't work

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Java won't work

    Everytime I install java 2 (1.4.2) it doesn't seem to work. It installs, just that it doesn't work when I go play java games... any suggestions?

  2. #2
    You probably need to setup your environment variables to make sure that it's in your path when you log in.

    This assumes that you installed the JRE (java runtime environemt) and not the SDK (the development package). If you installed the JDK the path will be something like "/opt/j2sdk_nb" instead of "/usr/java"

    Create a file called in /etc/profile.d/ .
    This file should contain the following lines (with the first line modified appropriately, according to what's actually in /usr/java/):

    export JAVA_HOME="/usr/java/j2re1.4.2_02"
    export JAVA_PATH="$JAVA_HOME"
    export PATH="$PATH:$JAVA_HOME/bin"
    chmod +x /etc/profile.d/
    Java should now work properly. You will need to log in and log out for some things to function properly.

    To install the browser (mozilla) plugin for java, as root, do:

    ln -sf /usr/java/<YourJavaDirectory>/plugin/i386/ns610-gcc32/ /usr/lib/mozilla/plugins
    -- note that you need to replace <YourJavaDirectory> with the name of the actual directory that's there.

  3. #3
    thanks, that worked, although I installed my browser in /usr/local/ :o

  4. $spacer_open
  5. #4
    Yea, everybody has to be different

    But I'm glad it was close enough to get you going. Have fun with the games.

  6. #5
    By the way, why don't you share, what are the games that you are playing?

  7. #6


    and linux Chess :o (that computer is so hard to beat)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts