Home » Questions » Computers [ Ask a new question ]

Installation of java in LINUX

Installation of java in LINUX

I am trying to install Java on Red Hat Linux through SSH.

Asked by: Guest | Views: 242
Total answers/comments: 2
Guest [Entry]

"First and foremost make sure the file is not the webpage, the Linux jre6u16 is roughly 19mb. The ampersand (&) in the filename as already stated, tells the OS to run the process in the background. Rename the file to something simpler using mv and put the filename in quotes:

mv ""jre-6u16-linux-i586-rpm.bin?e=1255431454245&h=f50f4cda5641e55f8e49f217e854faca%2F&filename=jre-6u16-linux-i586-rpm.bin"" jre-6u16-linux-i586-rpm.bin

then allow execute permissions:

chmod a+x jre-6u16-linux-i586-rpm.bin

then we can install it:

./jre-6u16-linux-i586-rpm.bin"
Guest [Entry]

"What Linux distribution are you using? Most of them should allow you to install Java through their package management system (such as APT for Debian and Ubuntu), which is easier, and allows for easy updates as well.

If you really must install it manually, start by renaming the file to something shorter and then make it executable with this command:

chmod a+x filename

Then you should be able to run it."