Solved

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

Posted on 2010-09-08
14
1,186 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
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!

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
micro services vs rest web services 16 81
Mysql Crashing Intermittently 16 78
Cipher Configuration on Apache HTTPD 4 50
diffSum example 4 20
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 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

11 Experts available now in Live!

Get 1:1 Help Now