Link to home
Start Free TrialLog in
Avatar of GiorgioCarlos
GiorgioCarlosFlag for Italy

asked on

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
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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.
Avatar of GiorgioCarlos

ASKER

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

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

with this:

# find / -name eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz, because when you told me that.
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.
this is the file where it is:

/usr/share/java/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
what should i do next?
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
Have you installed the Java Development Kit yet?  You'll need that too.

Try this as a test

$ javac -version
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.
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
Sounds like there are special Fedora instructions?  I used Slackware.

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?

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.
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.
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.
OK, what do you mean by authenticate your disk.  What program is trying to authenticate your disk?
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?
maybe I need to change the permission of my entire disk?
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.
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?
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.
I think the perms of my entire folder  home/usr/bin   are changed
All the files or just the folder?
all the files
It is hard to know what they were.  Most of them were likely 755 and owned by root:root.
the fact the disk c: is blocked I can not access
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.
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
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.)
#
# /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
yes the problem I cannot mount the disk
Please issue the command

$ df -h
and copy/paste here
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
OK, both / and /boot are mounted.  Is there some other partition you want to mount?
yes my disk where I have my data
OK, what is the partition called (/dev/what?) and where do you want to mount it?
how can I know how is the partition called?
Hopefully this will work

$ cat  /proc/partitions
so I must put this     chmod 775 /dev/sda5?

I put It didn't work
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
ASKER CERTIFIED SOLUTION
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you