Find the answer to your Linux question:
Results 1 to 5 of 5
I'm trying to get the Java SDK working on my station (I have Suse 8.0). I installed it and everything, but when in my home directory I type 'javac test.java' ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Location
    fort collins, colorado
    Posts
    8

    Linux and javac problems, please help


    I'm trying to get the Java SDK working on my station (I have Suse 8.0). I installed it and everything, but when in my home directory I type 'javac test.java' and I get a file not found error. But, if I go to the directory where I have installed the SDK and type 'javac ...' and it works. How can I get this to work globally?

    Also, what's this BBCode thing all about? I'm new to this forum.

  2. #2
    Just Joined!
    Join Date
    Feb 2003
    Location
    fort collins, colorado
    Posts
    8
    Sorry folks, I meant to say that I am getting a 'command not found' error, not a 'file not found' error.

  3. #3
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    export PATH=$PATH:/path/to/java/bin

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2003
    Location
    fort collins, colorado
    Posts
    8

    Thanks, it worked. But.....

    Thanks a lot, that worked. But what exactly does export mean? What's happening in this line here?

  6. #5
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    It is putting your java bin dir in your path so you dont need to type /path/to/bin/javac everytime you want to use it. I suggest putting that line in your .bash_profile so it is ran evertime you login. $PATH is an enviroment variable and export is a way of adding variables or functions to your enviroment.

Posting Permissions

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