Back Forum Reply New

Getting eclipse to work

I am using  7.04 (Feisty Fawn) and today I try to get eclipse IDE to work. After downloading and extracting the eclipse archive I could not find the way to run it.Code:
unique@ubuntu:~/eclipse$ java -version
java version quot;1.6.0quot;
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
unique@ubuntu:~/eclipse$ ls -Al
total 384
drwxr-xr-x  2 unique unique   4096 2007-06-28 21:18 about_files
-rw-r--r--  1 unique unique  11930 2007-06-28 21:18 about.html
drwxr-xr-x  2 unique unique   4096 2007-06-28 21:18 configuration
-rwxr-xr-x  1 unique unique  20537 2007-06-28 21:18 eclipse
-rw-r--r--  1 unique unique    115 2007-06-28 21:18 eclipse.ini
-rw-r--r--  1 unique unique     59 2007-06-28 21:18 .eclipseproduct
-rw-r--r--  1 unique unique  16536 2007-06-28 21:18 epl-v10.html
drwxr-xr-x 25 unique unique   4096 2007-06-28 21:17 features
-rw-r--r--  1 unique unique   9022 2007-06-28 21:18 icon.xpm
-rwxr-xr-x  1 unique unique 266168 2007-06-28 21:18 libcairo-swt.so
-rw-r--r--  1 unique unique   6506 2007-06-28 21:18 notice.html
drwxr-xr-x 13 unique unique  20480 2007-06-28 21:17 plugins
drwxr-xr-x  2 unique unique   4096 2007-06-28 21:18 readme
unique@ubuntu:~/eclipse$ ./eclipse
bash: ./eclipse: No such file or directory
unique@ubuntu:~/eclipse$
As you can see I cannot get the executable file eclipse (which is right there) get to run (it tells it is not there ). Probably I am doing something simple wrong. Can you tell me what is it and how to run the eclipse IDE?

You should install from repositories, then you should be able to run just simpe typing: eclipse (without any dots and slashes), and also it should be in the menu. And in your case, if you know, that eclipses binary is in that location, maybe it's not executable? you can make it executable doing this:
Code:
chmod a+x eclipse


go get it from the repositories, your life will become way easier Code:
sudo apt-get install eclipse


twinky,

I did the same as you and eclipse ran fine:Code:
user@pc:/opt/eclipse$ java -version
java version quot;1.6.0quot;
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
user@pc:/opt/eclipse$ ls -Al
total 460
drwxrwxr-x   2 user user   4096 2007-02-12 14:31 about_files
-rw-rw-r--   1 user user  11669 2007-02-12 14:31 about.html
drwxrwxr-x   6 user user   4096 2007-04-20 00:41 configuration
-rwxr-xr-x   1 user user  29128 2007-02-12 14:31 eclipse
-rw-rw-r--   1 user user     25 2007-02-12 14:31 eclipse.ini
-rw-rw-r--   1 user user     59 2007-02-12 14:31 .eclipseproduct
-rw-r--r--   1 user user  12656 2007-02-08 16:16 epl-v10.html
drwxrwxr-x 101 user user  12288 2007-02-22 00:51 features
-rw-rw-r--   1 user user   9022 2007-02-12 14:31 icon.xpm
-rwxr-xr-x   1 user user 266168 2007-02-12 14:31 libcairo-swt.so
-rw-r--r--   1 user user   6506 2007-02-08 16:16 notice.html
drwxr-xr-x  78 user user  40960 2006-12-05 05:15 plugins
drwxrwxr-x   2 user user   4096 2007-02-22 00:49 readme
-rw-rw-r--   1 user user  34148 2007-02-12 14:31 startup.jar
user@pc:/opt/eclipse$ ./eclipse
Your eclipse folder seems to be missing the startup.jar file though.

ok ok, i know i can get it from repositories, but it is really strange that executable file could not be found! The repositories are great, but just theoretically what if I want to use the Eclipse IDE on the computer where is not an internet connection...?


Originally Posted by Damieltwinky,

I did the same as you and eclipse ran fine:Code:
user@pc:/opt/eclipse$ java -version
java version quot;1.6.0quot;
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
user@pc:/opt/eclipse$ ls -Al
total 460
drwxrwxr-x   2 user user   4096 2007-02-12 14:31 about_files
-rw-rw-r--   1 user user  11669 2007-02-12 14:31 about.html
drwxrwxr-x   6 user user   4096 2007-04-20 00:41 configuration
-rwxr-xr-x   1 user user  29128 2007-02-12 14:31 eclipse
-rw-rw-r--   1 user user     25 2007-02-12 14:31 eclipse.ini
-rw-rw-r--   1 user user     59 2007-02-12 14:31 .eclipseproduct
-rw-r--r--   1 user user  12656 2007-02-08 16:16 epl-v10.html
drwxrwxr-x 101 user user  12288 2007-02-22 00:51 features
-rw-rw-r--   1 user user   9022 2007-02-12 14:31 icon.xpm
-rwxr-xr-x   1 user user 266168 2007-02-12 14:31 libcairo-swt.so
-rw-r--r--   1 user user   6506 2007-02-08 16:16 notice.html
drwxr-xr-x  78 user user  40960 2006-12-05 05:15 plugins
drwxrwxr-x   2 user user   4096 2007-02-22 00:49 readme
-rw-rw-r--   1 user user  34148 2007-02-12 14:31 startup.jar
user@pc:/opt/eclipse$ ./eclipse
Your eclipse folder seems to be missing the startup.jar file though.

today i downloaded eclipse from eclipse.org site (two different packages Eclipse IDE for Java Developers and Eclipse for Java Enterprise Developers), and there is no startup. jar

if there will be one i'll try 'java -jar startup.jar' at least

Well, I just found out after reading your post that eclipse 3.3 (europa) has been released, and there is no startup.jar file anymore

Code:
user@pc:~/Desktop/eclipse$ ls -Al
total 384
drwxr-xr-x  2 user user   4096 2007-06-28 14:18 about_files
-rw-r--r--  1 user user  11930 2007-06-28 14:18 about.html
drwxr-xr-x  8 user user   4096 2007-07-01 10:13 configuration
-rwxr-xr-x  1 user user  20537 2007-06-28 14:18 eclipse
-rw-r--r--  1 user user    115 2007-06-28 14:18 eclipse.ini
-rw-r--r--  1 user user     59 2007-06-28 14:18 .eclipseproduct
-rw-r--r--  1 user user  16536 2007-06-28 14:18 epl-v10.html
drwxr-xr-x 25 user user   4096 2007-06-28 14:17 features
-rw-r--r--  1 user user   9022 2007-06-28 14:18 icon.xpm
-rwxr-xr-x  1 user user 266168 2007-06-28 14:18 libcairo-swt.so
-rw-r--r--  1 user user   6506 2007-06-28 14:18 notice.html
drwxr-xr-x 13 user user  20480 2007-06-28 14:17 plugins
drwxr-xr-x  2 user user   4096 2007-06-28 14:18 readme
user@pc:~/Desktop/eclipse$ ./eclipse
user@pc:~/Desktop/eclipse$
Still, it runs fine over here.

Excuse me if this is a silly question. Have you tried executing the eclipse file by double clicking on it in nautilus?


Originally Posted by twinkyok ok, i know i can get it from repositories, but it is really strange that executable file could not be found! The repositories are great, but just theoretically what if I want to use the Eclipse IDE on the computer where is not an internet connection...?

Are you sure that it is executable? Cause this problem, than file not found is usualy when you try to execute, but it's not executable. I'm talking not about that file is binary or something, but if it has the x mod. You can make it executable by executing this command:
Code:
chmod a+x eclipse(if you need root permission, add sudo in front of this command)
And the try it run ./eclipse

I think you discover that eclispe requires a shell script to start and if you used the repos and synaptic it would have put the shell script into /usr/bin.  I don't think that eclipse you see in the directory is a vaild executable it may be just a loadable module.
lt;app name=quot;Eclipsequot; cmd=quot;/usr/bin/eclipsequot; icon=quot;eclipse48.pngquot; term=quot;falsequot; snotify=quot;truequot; /gt;  

From my development menu

/usr/bin$ ls -o ec*
-rwxr-xr-x 1 root    5976 2007-03-12 11:47 echo-client-2
-rwxr-xr-x 1 root     686 2007-03-07 14:05 ecj
-rwxr-xr-x 1 root     686 2007-03-07 14:05 ecj-bootstrap
-rwxr-xr-x 1 root 2680852 2007-03-07 14:06 ecj-gcj
-rwxr-xr-x 1 root    5364 2007-04-10 13:22 eclipse

from my /usr/bin directory and

:/usr/lib$ ls -o e*
-rwxr-xr-x 1 root 7300 2007-03-28 09:45 e2initrd_helper

eclipse:
total 108
drwxr-xr-x  2 root  4096 2007-06-23 16:16 configuration
-rwxr-xr-x  1 root 22900 2007-04-10 14:33 eclipse
-rw-r--r--  1 root    25 2007-04-10 13:07 eclipse.ini
drwxr-xr-x 12 root  4096 2007-06-23 16:16 features
drwxr-xr-x  2 root  4096 2007-06-23 16:16 links
drwxr-xr-x 86 root 32768 2007-06-23 16:16 plugins
-rw-r--r--  1 root 34173 2007-04-10 13:07 startup.jar

and there is the eclipse library that you were trying to execute as a program from my /usr/lib directory.


Originally Posted by DamielExcuse me if this is a silly question. Have you tried executing the eclipse file by double clicking on it in nautilus?

Yes I have been trying that few times but nothing at all happen. (and you are also right that 3.3 version of eclipse don't have the startup.jar...it was the reason why i didnt get 3.2 from repositories I just wanted the fresh version Originally Posted by rapolasAre you sure that it is executable? Cause this problem, than file not found is usualy when you try to execute, but it's not executable. I'm talking not about that file is binary or something, but if it has the x mod. You can make it executable by executing this command:

Code:
chmod a+x eclipseas far as i can see it from ls -Al command the file eclipse is executable (x) for all the users, but to make it sure i used also the mentioned chmod command ... without any noticable impact  and it still dont workOriginally Posted by DBStevensI think you discover that eclispe requires a shell script to start and if you used the repos and synaptic it would have put the shell script into /usr/bin. I don't think that eclipse you see in the directory is a vaild executable it may be just a loadable module.

Ok, the reason why i post it here is that it seems the file isn't there (but it is) and this is very confusing for me. I'll be ok if it says something like segmentation fault or something similar but not just 'No such file or directory'. [joke]Does it need glasses to see it?[/joke]

Anyway thank you all for the replies
¥
Back Forum Reply New