Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to install java on linux5

 
rumana amin
Ranch Hand
Posts: 35
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends
i am facing problem in installation of java enterprise edition on linux5 os .please help me by sending step by step process of installation .
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a "linux5"? Do you mean Red Hat Enterprise version 5? CentOS 5? Something else?
 
rumana amin
Ranch Hand
Posts: 35
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
yes i mean Red Hat Linux enterprise version 5.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have 2 options:

1. Download the RPM-based (rpm.bin) package from Oracle/Sun and run it. It will unpack RPMs and install them.

2. Download the zip (or tgz?) archive from Oracle/Sun, make a directory to contain it (I recommend /usr/java), and unzip the archive there.

Both give the same net result. RPMs install by default to /usr/java. The main difference is that with RPM, the software is officially accounted for in the RPM database, which is handy for keeping inventory of what's installed on the machine.

Note that neither approach will setup the Sun Java as the default. There's an (incomplete) open-source java that's usually pre-installed with the OS, so if you type "java" at a command prompt without adding the installed JVM or JDK bin directory to your PATH, you'll get that java instead of the "real" java.
 
rumana amin
Ranch Hand
Posts: 35
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello tim
thanks a lot.i have installed rpm.bin on linux.it is successfully loaded.but don't know How to run first java program'hello world'.i'v tried so many times but not succeed.please tell me the write process to satrt running programs .
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you ran the rpm.bin, then it should have placed the JDK at /usr/local/jdk1.6.0_29, and given you a /usr/local/current (? not sure of that, don't have a Red Hat system handy right now) sym link to /usr/java/jdk_1.6.0_29. Also, it should have created a symlink named /usr/ban/java to /usr/java/current/bin/java. Use the ls command to verify this. The run "java -version" to also verify that it tells you the correct version number.
 
evan tanski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to change it to /epel-release-5-4.noarch.rpm The very old 5.2 is not on the fedora el5 repo.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic