Solved

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

Posted on 2010-09-08
14
1,220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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
 
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

752 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