Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I'm fairly new to LINUX. I've downloaded the updated version of Java JDK. It's on y desktop has a ".bin". How do I install/execute a .bin (self extracting file). ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    LAF
    LAF is offline
    Just Joined!
    Join Date
    Jun 2007
    Posts
    22

    Installing JAVA


    Hi,

    I'm fairly new to LINUX. I've downloaded the updated version of Java JDK. It's on y desktop has a ".bin".

    How do I install/execute a .bin (self extracting file). I've tried clicking on it, but Kwrite opens the file as a document .

    Please Help,

    Marc.

  2. #2
    Linux Newbie objuan's Avatar
    Join Date
    Jul 2006
    Location
    california
    Posts
    234
    Quote Originally Posted by LAF View Post
    Hi,
    How do I install/execute a .bin (self extracting file).
    First in a terminal or console you will need to change the file permissions so the file will execute. Change user to root then chmod 755 filename.
    To execute the file, change directories to where the file is.
    now type ./filename note period before the slash.

  3. #3
    Just Joined! Nautilus's Avatar
    Join Date
    Jun 2007
    Location
    London,UK and Athens,GR
    Posts
    42
    You will need to open up a console and manualy execute the file.

    So open up the console and do:

    cd <directory where your .bin file lives>
    ./<the name of your bin file>
    If the file comes with no execution rights set, do:

    chmod +x <name of your bin file>
    and then execute it.

    And don't forget to TAB complete!

  4. #4
    LAF
    LAF is offline
    Just Joined!
    Join Date
    Jun 2007
    Posts
    22
    Thanks Nautilus,

    Now that I installed it, how do I run the Runtime JAVA?

    Marc.

  5. #5
    Just Joined! Nautilus's Avatar
    Join Date
    Jun 2007
    Location
    London,UK and Athens,GR
    Posts
    42
    It is in the bin directory, at the directory you have installed it. Just:

    cd <the directory you have installed your java>/bin/
    ./java


    I would suggest to add to your .bshrc or profile the following if you haven't done already:

    export JAVA_HOME=<the directory you have installed your java>
    export PATH=$PATH:<the directory you have installed your java>/bin/
    Like this whenever you get a new shell, you will have the java binaries (executables) in your path, so a simple:

    java
    will do the job from whichever directory you are in, and also other programs that might need java, will know where it is installed.

  6. #6
    LAF
    LAF is offline
    Just Joined!
    Join Date
    Jun 2007
    Posts
    22
    Thanks a bunch Nautilus !



Posting Permissions

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