• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDK Installation problem on Linux  RSS feed

 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
Am new to Linux environment. I tried accessing the download page for JDK at http://www.java.sun.com, but couldn't. It displays an alert box with the following message: jsecom16b.sun.com could not be found. Please check the name and try again.
The same link works fine on windows.
I downloaded the requisite file for Linux j2sdk-1_4_2_05-linux-i586-rpm.bin and then transferred it on Linux machine through FTP. Executed the file with the command: chmod a+x j2sdk-1_4_2_05-linux-i586-rpm.bin
It says the file is corrupted.

How do I proceed for the installation of Java on Linux ?

Thanks.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of chmod +x you could try:

Check at least the filesize before - perhaps there was a download-error.
 
Tim Holloway
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike Windows, the current directory isn't normally part of the execution path. So to execute a program or script from the current directory, the file has to have the "x" (eXecutable) attribute set, and you have to explicitly locate the file. In your case:

# ./j2sdk-1_4_2_05-linux-i586-rpm.bin
# rpm -ivh j2sdk-1_4_2_05-linux-i586.rpm
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!