Find the answer to your Linux question:
Results 1 to 6 of 6
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?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2004
    Posts
    7

    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
    Linux User
    Join Date
    Jan 2004
    Posts
    357
    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 java.sh 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/):

    Code:
    export JAVA_HOME="/usr/java/j2re1.4.2_02"
    export JAVA_PATH="$JAVA_HOME"
    export PATH="$PATH:$JAVA_HOME/bin"
    Type
    Code:
    chmod +x /etc/profile.d/java.sh
    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:

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

  3. #3
    Just Joined!
    Join Date
    Feb 2004
    Posts
    7
    thanks, that worked, although I installed my browser in /usr/local/ :o

  4. #4
    Linux User
    Join Date
    Jan 2004
    Posts
    357
    Yea, everybody has to be different

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

  5. #5
    Linux User
    Join Date
    Jan 2004
    Posts
    357
    By the way, why don't you share, what are the games that you are playing?

  6. #6
    Just Joined!
    Join Date
    Feb 2004
    Posts
    7
    http://games.yahoo.com

    Pool
    Dominoes
    Cribbage

    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
  •