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
Linux

Avatar of undefined
Last Comment
GiorgioCarlos
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
GiorgioCarlos
Flag of Italy image

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

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

ASKER

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

Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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

Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

with this:

# find / -name eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz, because when you told me that.
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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

ASKER

this is the file where it is:

/usr/share/java/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

what should i do next?
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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

Have you installed the Java Development Kit yet?  You'll need that too.

Try this as a test

$ javac -version
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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.
Avatar of mohansahu
mohansahu
Flag of India image

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

Sounds like there are special Fedora instructions?  I used Slackware.

Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

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?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER


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

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

ASKER

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

OK, what do you mean by authenticate your disk.  What program is trying to authenticate your disk?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

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?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

maybe I need to change the permission of my entire disk?
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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

ASKER

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

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

ASKER

I think the perms of my entire folder  home/usr/bin   are changed
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

All the files or just the folder?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

all the files
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

It is hard to know what they were.  Most of them were likely 755 and owned by root:root.
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

the fact the disk c: is blocked I can not access
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

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

ASKER

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

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.)
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

#
# /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
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

yes the problem I cannot mount the disk
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

Please issue the command

$ df -h
and copy/paste here
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

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

OK, both / and /boot are mounted.  Is there some other partition you want to mount?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

yes my disk where I have my data
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

OK, what is the partition called (/dev/what?) and where do you want to mount it?
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

how can I know how is the partition called?
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America image

Hopefully this will work

$ cat  /proc/partitions
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

so I must put this     chmod 775 /dev/sda5?

I put It didn't work
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of GiorgioCarlos
GiorgioCarlos
Flag of Italy image

ASKER

thank you
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo