Solved

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

Posted on 2010-09-08
14
1,174 Views
Last Modified: 2013-12-06
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
Comment
Question by:network16
  • 9
  • 5
14 Comments
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630100
put a dot first

chmod ./jdk-6u21-linux-x64.bin
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630115
and the rights you want. example:

chmod 777 ./jdk-6u21-linux-x64.bin
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630124
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
 

Author Comment

by:network16
ID: 33630143
I get the following error now chmod: missing operand after chmod cannot access jdk-6u21-linux-x64.bin:
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630144
(ignore the first two posts, I'm a bit tired right now...;)
0
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 250 total points
ID: 33630254
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
 

Author Comment

by:network16
ID: 33630295
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630335
are you logged in as root? (use 'su')
0
 

Author Comment

by:network16
ID: 33630406
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
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630588
'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
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33630612
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
 

Author Comment

by:network16
ID: 33631168
Yes it displays the all files. Now how should i install them
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 33631217
0
 

Author Closing Comment

by:network16
ID: 33767731
solved
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now