Linux Linux simple problem (for u xprienced users ;) )

Discussion in 'Software' started by FaIIen, 6 Feb 2003.

  1. FaIIen

    FaIIen origami killer

    Joined:
    31 Dec 2001
    Posts:
    507
    Likes Received:
    0
    OK ..i've intalled SDK 1.1.4, everything running ok. But every time i want to compile something i have to browse to /usr/java/jdk1.1.4../bin/ and run the compiler (javac). How can I make linux load the bin directory on startup so i can access javac and every other executable file (on the bin dir) from any location ? I'm not very experienced Linux user, so plz make it simple for me.

    Thanks guys

    ..oops wrong forum ..can you move my message to the linux forum ?
     
    Last edited: 6 Feb 2003
  2. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
    Moved :)


    I had the same problems you're having. What you need to do is set up a symbolic link to javac and java.
    I'm not 100% sure on this, but it's something like...

    * browse to the java SDK directory, and type:
    ln -s javac /usr/bin

    As I say, that's not definite, so don't take it as gospel. Hopefully somebody can confirm, or correct that for me.
     
  3. dakar

    dakar What's a Dremel?

    Joined:
    6 Mar 2002
    Posts:
    460
    Likes Received:
    0

    95% correct... the only thing missed was you have to be exact on the file you are creating the symbolic link to....else you will create the lnk...but it will be dead.

    ln -s /usr/java/jdk1.1.4/bin/javac /usr/bin/javac

    verify the source directory on your system as i just grabbed some text from the original post. /usr/sbin is almost always in your path so you should be able to call javac from anywhere.
     
Tags:

Share This Page