Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I recently bought a cheap VPS with CentOS 6.0, and I have very little experience using the command line. How would I install JDK 7, and where is the ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    3

    Installing JDK 7 on CentOS 6.0 x86_64

    Hi,
    I recently bought a cheap VPS with CentOS 6.0, and I have very little experience using the command line. How would I install JDK 7, and where is the best place for a beginner to learn more about using the command line interface? Thanks

  2. #2
    Just Joined!
    Join Date
    Oct 2011
    Posts
    15
    you can get rpm package for jdk 7 from oracle's website. you can google "jdk 7".
    once you download rpm, fire following command:

    rpm -ivh /path/to/jdk-7-linux-x86.rpm

    this will install and configure jdk automatically.

    otherwise you can download binary package provided by them.
    for that

    - go to /path/to/jdk-7-linux-x86.bin
    - chmod +x jdk-7-linux-x86.bin
    - ./jdk-7-linux-x86.bin

    this will extract the required files to filesystem.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    The command line interface (CLI) most commonly used on Linux (the default) is bash. There are a lot of resources on the net, or available from such as Amazon.com or your local book store, that will help you learn bash. In addition, you need to learn what the common OS commands are, and again, there are online and hard-copy resources/books/articles to help learn those for Linux. FWIW, RHEL (Red Hat Enterprise Linux) 6 and its clones (CentOS 6 and SL 6) currently install the JDK verion 6 (1.6.0), so as ssd7 said, you need to get the RPM file from Oracle and install that. You can have multiple versions of Java installed on your system, so you might want to do some research on how it is configured on the file system before you plunge ahead.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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