Use RedHatEnterpriseLinux to build a Java Development Environment

Source: Internet
Author: User
In fact, it is not difficult to build a Java Development Environment Using RedHatEnterpriseLinux. The following steps are listed for reference: 1. Attach a CD [root @ station25 ~] # Mount/dev/cdrom/media/mount: blockdevice/dev/cdromiswrite-protected, mountingread-only2, configure yum source, it is not difficult to build a Java Development Environment Using Red Hat Enterprise Linux. The following steps are listed for your reference:

1. Attach a cd
  1. [Root @ station25 ~] # Mount/dev/cdrom/media/
  2. Mount: block device/dev/cdrom is write-protected, mounting read-only
2. Configure the yum source and verify
  1. [Rhel-debuginfo]
  2. Name = Red Hat
  3. Baseurl = file: // media/Server
  4. Enabled = 1
  5. Gpgcheck = 1
  6. Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release


    [Root @ station25 ~] #Yum updateLoaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. rhel-debuginfo | 1.3 kB rhel-debuginfo/primary | 732 kB rhel-debuginfo 2292/2292 Skipping security plugin, no data Setting up Update Process No Packages marked for Update
3. Install IDE

In fact, this is also the main thing (of course, there are some dependent packages, a total of 133 M)
  1. Java-1.6.0-openjdk.i386 1:1. 6.0.0-1.2.b09.el5 rhel-debuginfo
  2. Java-1.6.0-openjdk-demo.i386 1:1. 6.0.0-1.2.b09.el5 rhel-debuginfo
  3. Java-1.6.0-openjdk-devel.i386 1:1. 6.0.0-1.2.b09.el5 rhel-debuginfo
  4. Java-1.6.0-openjdk-javadoc.i386 1:1. 6.0.0-1.2.b09.el5 rhel-debuginfo
  5. Java-1.6.0-openjdk-src.i386 1:1. 6.0.0-1.2.b09.el5 rhel-debuginfo
Then install
  1. [Root @ station25 ~] #Yum install java-*-y
  2. Loaded plugins: rhnplugin, security
  3. This system is not registered with RHN.
  4. RHN support will be disabled.
  5. Setting up Install Process
  6. Package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 already installed and latest version
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package java-1.4.2-gcj-compat-devel.i386. 4.2.0-40jpp. 115 set to be updated
  10. Rhel-debuginfo/filelists | 2.3 MB
  11. --> Processing Dependency: libgcj-devel> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-devel
  12. --> Processing Dependency: gcc-java> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-devel
  13. --> Processing Dependency: libgcj-devel> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-devel
  14. --> Processing Dependency: gcc-java> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-devel
  15. --> Processing Dependency: eclipse-ecj for package: java-1.4.2-gcj-compat-devel
  16. --> Processing Dependency:/usr/lib/gcc/i386-redhat-linux/4.1.1/libgcj. spec for package: java-1.4.2-gcj-compat-devel
  17. --> Processing Dependency:/usr/lib/gcc/i386-redhat-linux/4.1.1/libgcj. spec for package: java-1.4.2-gcj-compat-devel
  18. ---> Package java-1.4.2-gcj-compat-javadoc.i386. 4.2.0-40jpp. 115 set to be updated
  19. ---> Package java-1.4.2-gcj-compat-src.i386. 4.2.0-40jpp. 115 set to be updated
  20. --> Processing Dependency: libgcj-src> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-src
  21. --> Processing Dependency: libgcj-src> = 4.0.0-0.42 for package: java-1.4.2-gcj-compat-src
  22. ---> Package java-1.6.0-openjdk.i386 1:1. 6.0.0-1.2.b09.el5 set to be updated
  23. ---> Package java-1.6.0-openjdk-demo.i386 1:1. 6.0.0-1.2.b09.el5 set to be updated
  24. ---> Package java-1.6.0-openjdk-devel.i386 1:1. 6.0.0-1.2.b09.el5 set to be updated
  25. ---> Package java-1.6.0-openjdk-javadoc.i386 1:1. 6.0.0-1.2.b09.el5 set to be updated
  26. ---> Package java-1.6.0-openjdk-src.i386 1:1. 6.0.0-1.2.b09.el5 set to be updated
  27. --> Running transaction check
  28. ---> Package eclipse-ecj.i386. 2.1-19. el5 set to be updated
  29. ---> Package gcc-java.i386. 1.2-46. el5 set to be updated
  30. ---> Package libgcj-devel.i386. 1.2-46. el5 set to be updated
  31. ---> Package libgcj-src.i386. 1.2-46. el5 set to be updated
  32. --> Finished Dependency Resolution
  33. Dependencies Resolved
  34. ========================================================== ========================================================== ======================================
  35. Package Arch Version Repository Size
  36. ========================================================== ========================================================== ======================================
  37. Installing:
  38. Java-1.4.2-gcj-compat-devel i386 1.4.2.0-40jpp. 115 rhel-debuginfo 50 k
  39. Java-1.4.2-gcj-compat-javadoc i386 1.4.2.0-40jpp. 115 rhel-debuginfo 24 M
  40. Java-1.4.2-gcj-compat-src i386 1.4.2.0-40jpp. 115 rhel-debuginfo 19 k
  41. Java-1.6.0-openjdk i386. 6.0.0-1.2.b09.el5 rhel-debuginfo 28 M
  42. Java-1.6.0-openjdk-demo i386. 6.0.0-1.2.b09.el5 rhel-debuginfo 2.2 M
  43. Java-1.6.0-openjdk-devel i386. 6.0.0-1.2.b09.el5 rhel-debuginfo 9.2 M
  44. Java-1.6.0-openjdk-javadoc i386. 6.0.0-1.2.b09.el5 rhel-debuginfo 20 M
  45. Java-1.6.0-openjdk-src i386. 6.0.0-1.2.b09.el5 rhel-debuginfo 25 M
  46. Installing for dependencies:
  47. Eclipse-ecj i386. 2.1-19. el5 rhel-debuginfo 7.9 M
  48. Gcc-java i386 4.1.2-46. el5 rhel-debuginfo 2.9 M
  49. Libgcj-devel i386 4.1.2-46. el5 rhel-debuginfo 1.4 M
  50. Libgcj-src i386 4.1.2-46. el5 rhel-debuginfo 11 M
  51. Transaction Summary
  52. ========================================================== ========================================================== ======================================
  53. Install 12 Package (s)
  54. Update 0 Package (s)
  55. Remove 0 Package (s)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.