install jdk

hello I wanna install jdk and eclipse but I dont know.
I have downloaded   ( eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz ) and put inside user/share/java  file but them I dont know how to tar this file or which should be the next step?

Thanks
GiorgioCarlosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hugh McCurdyCommented:
Sure it's not /usr/share/java ?

Anyway, from that folder, if you are root/su

# tar xzf eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
or if you can't become su (if using Ubuntu, et al)
$ sudo tar xzf eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

Go into the new folder.  It will likely start with eclipse.  In the new folder, look for  a readme.txt or install.txt file.
0
GiorgioCarlosAuthor Commented:
i get this: I am in Fedora 14
tar (child): eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz: it can't open: it doesn exist the file.
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
0
Hugh McCurdyCommented:
Make sure you are in the right folder.  If you can't find the file...

Try this

# find / -name eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

If it's on your system, it should find it.  You'll get some warning messages, which you should just ignore.  
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GiorgioCarlosAuthor Commented:
Ok this the path:

/usr/share/java/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
find: `/home/masr/.gvfs': Denied permit
/home/masr/Downloads/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

0
Hugh McCurdyCommented:
Which command produced this?  If it was tar, be sure you are at a # before you use tar to unzip to that folder.

0
GiorgioCarlosAuthor Commented:
with this:

# find / -name eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz, because when you told me that.
0
Hugh McCurdyCommented:
It is normal for find using the whole filesystem to return a warning.  The point was to find the location of the tarball -- eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

Once you find it, you and use the tar xzf command to unzip it.
0
GiorgioCarlosAuthor Commented:
this is the file where it is:

/usr/share/java/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
0
GiorgioCarlosAuthor Commented:
what should i do next?
0
Hugh McCurdyCommented:
Try this

$ su
# cd /usr/share/java
# tar xzf eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

and probably

# cd eclipse-java-indigo-SR1-linux-gtk-x86_64
# ls
look for a file like README or readme
0
Hugh McCurdyCommented:
Have you installed the Java Development Kit yet?  You'll need that too.

Try this as a test

$ javac -version
0
Hugh McCurdyCommented:
In my copy of eclipse, I ended up with a directory called readme.  My folder is called eclipse.  I might or might not have renamed it.  Not sure.  Anyway, in the ecplipse/readme directory there is an HTML file with more instructions.
0
mohansahuCommented:
Hi,

Plz follow below link for detail in step by step instruction for installing eclipse on Fedora.

http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/

MS
0
Hugh McCurdyCommented:
Sounds like there are special Fedora instructions?  I used Slackware.

0
GiorgioCarlosAuthor Commented:
Ok hmccurdy
I succed until this:

# cd /usr/share/java
# tar xzf eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

Then what should I do?
0
GiorgioCarlosAuthor Commented:

I think the problem is cause since I tried to change the permission of usr/share/java...  is impossible to autenticate  in my disk
it ask for autenticate and them I click and them it doesnt work.
0
Hugh McCurdyCommented:
Is there a message?  Did you read the Fedora instructions suggested by mohansahu

If there are special Fedora instructions, normal Linux instructions will likely not work.  I got Eclipse to work with Slackware.

If the Fedora instructions don't work, perhaps a new post mentioning you are using Fedora.
0
GiorgioCarlosAuthor Commented:
The problem is that I can not enter to my disk c:, maybe i have done something that I change some permission to system folders,
So what should i do to return to my default permission of the whole thing.
0
Hugh McCurdyCommented:
OK, what do you mean by authenticate your disk.  What program is trying to authenticate your disk?
0
GiorgioCarlosAuthor Commented:
When you are trying to install a new package or a new program, the system ask you for authenticate or said in other words, (In windows)
 trying to enter disk c:, but I cannot enter I dont know why?
0
GiorgioCarlosAuthor Commented:
maybe I need to change the permission of my entire disk?
0
Hugh McCurdyCommented:
I think you need to enter the password for root on the system.

Another option is open a terminal window and then

$ su
#

From the # you shouldn't need to authenticate further.  Type exit or press CTRL/D to exit from #.   You should not stay at a # longer than necessary.
0
GiorgioCarlosAuthor Commented:
yeah i tried with $su, I wrote the password, but defeinitely if I want to enter my disk c: It appers me a window I need special permission to enter, so should I change the permissions of the folders or the system folders?
0
Hugh McCurdyCommented:
I don't know.  It appears you may have extra security that I haven't used.

Which system folders?  (For instance, don't change the perms on /bin, /etc and so forth.)  By contrast, I created a "system" folder called /opt and I made myself the owner.
0
GiorgioCarlosAuthor Commented:
I think the perms of my entire folder  home/usr/bin   are changed
0
Hugh McCurdyCommented:
All the files or just the folder?
0
GiorgioCarlosAuthor Commented:
all the files
0
Hugh McCurdyCommented:
It is hard to know what they were.  Most of them were likely 755 and owned by root:root.
0
GiorgioCarlosAuthor Commented:
the fact the disk c: is blocked I can not access
0
Hugh McCurdyCommented:
The disk C: is a Windows partition?  Is it an NTFS Windows partition?  If so, I think you are "out of luck."  Last I checked, Linux can't write to an NTFS partition.  Only read it.  (Last I checked).  Linux can read and write to a FAT32 partition.

If this is the case, perhaps we can come up with an alternate plan.  I would need to know more about what you are trying to accomplish to help with an alternate plan.
0
GiorgioCarlosAuthor Commented:
I am not meaning that disk c: is a windows partition I just used this words to explain you that I cannot acces what in (windows we call c:) where is all my data.

There is a windows that appears me that I cannot authenticate
0
Hugh McCurdyCommented:
It would be easier for me if we used Linux/Unix terminology.

Is the entire partition blocked?  How is it mounted?  (Copy and paste of the associated /etc/fstab line would help.)
0
GiorgioCarlosAuthor Commented:
#
# /etc/fstab
# Created by anaconda on Wed Sep  7 21:12:00 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_mastermusic-lv_root /                       ext4    defaults        1 1
UUID=54759db8-3c65-417e-a844-6ac62cf6ce0a /boot                   ext4    defaults        1 2
/dev/mapper/vg_mastermusic-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
0
GiorgioCarlosAuthor Commented:
yes the problem I cannot mount the disk
0
Hugh McCurdyCommented:
Please issue the command

$ df -h
and copy/paste here
0
GiorgioCarlosAuthor Commented:
S.ficheros            Size  Used Avail Use% Montado en
/dev/mapper/vg_mastermusic-lv_root
                       44G  9.9G   34G  23% /
tmpfs                1002M  1.1M 1001M   1% /dev/shm
/dev/sda2             485M   65M  395M  15% /boot
0
Hugh McCurdyCommented:
OK, both / and /boot are mounted.  Is there some other partition you want to mount?
0
GiorgioCarlosAuthor Commented:
yes my disk where I have my data
0
Hugh McCurdyCommented:
OK, what is the partition called (/dev/what?) and where do you want to mount it?
0
GiorgioCarlosAuthor Commented:
how can I know how is the partition called?
0
Hugh McCurdyCommented:
Hopefully this will work

$ cat  /proc/partitions
0
GiorgioCarlosAuthor Commented:
so I must put this     chmod 775 /dev/sda5?

I put It didn't work
0
GiorgioCarlosAuthor Commented:
major minor  #blocks  name

   8        0  244198584 sda
   8        1   38069216 sda1
   8        2     512000 sda2
   8        3  154928128 sda3
   8        4          1 sda4
   8        5   50686976 sda5
 253        0   46530560 dm-0
 253        1    4128768 dm-1
0
Hugh McCurdyCommented:
No.  Next you need a mount point.

$ su
# mkdir /mnt/hd                     (this is a mount point, at least for now)
# mount  /dev/sda5  /mnt/hd     (stop after this if you get any error messages and report them to me)
# df   -h

Should show the new partition as mounted and give you space.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GiorgioCarlosAuthor Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.