Solved

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

Posted on 2010-09-08
14
1,204 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

830 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