Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1448
  • Last Modified:

chmod cannot access jdk-6u21-linux-x64.bin: no such file or directory

I am installing Java in the cent os 64 bit, but i get an error chmod cannot access jdk-6u21-linux-x64.bin: no such file or directory.
0
network16
Asked:
network16
  • 9
  • 5
1 Solution
 
TobiasHolmCommented:
put a dot first

chmod ./jdk-6u21-linux-x64.bin
0
 
TobiasHolmCommented:
and the rights you want. example:

chmod 777 ./jdk-6u21-linux-x64.bin
0
 
TobiasHolmCommented:
btw, have you set the X-flag to be able to run the file? Type this:

chmod a+x jdk-6u21-linux-x64.bin
./jdk-6u21-linux-x64.bin
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
network16Author Commented:
I get the following error now chmod: missing operand after chmod cannot access jdk-6u21-linux-x64.bin:
0
 
TobiasHolmCommented:
(ignore the first two posts, I'm a bit tired right now...;)
0
 
TobiasHolmCommented:
My third post should work:

chmod a+x jdk-6u21-linux-x64.bin
./jdk-6u21-linux-x64.bin

But here's a guide: http://kmaiti.blogspot.com/2010/07/how-to-install-jdk16021-on-64-bit-linux.html

There are more steps after the two I wrote above.
0
 
network16Author Commented:
chmod cannot access jdk-6u21-linux-x64.bin: no such file or directory. why does it say no such file or directory. I saved it in usr/local
0
 
TobiasHolmCommented:
are you logged in as root? (use 'su')
0
 
network16Author Commented:
yes i logged in as root.what is su, i am new to linux , can you explain me in detail. Thanks for your posts
0
 
TobiasHolmCommented:
'su' is the command to get root access. If you're a user you have a $ in the terminal. If you're root you'll have a # in the terminal.

To use 'su' just type su in a terminal window and enter your password.
0
 
TobiasHolmCommented:
In a terminal, can you type

chmod a+x /usr/local/jdk

and then press TAB (not enter). If you have the file in that directory your shell will complete the file name for you. Press TAB twice to list several names (if you have several matches).
0
 
network16Author Commented:
Yes it displays the all files. Now how should i install them
0
 
network16Author Commented:
solved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now