score:258

Accepted answer

the same question has been answered on askubuntu:

eclipse menus are cut off or don't show

i might have found a possible solution for your problem. i have experienced the same issue as you have described, ubuntu 13.10 64-bit unity, eclipse 4.3.0, menus were not visible.

so i realise that it might be helpful if i clarify myself, the desktop shortcut file for eclipse would contain something like this:

[desktop entry]
version=4.3.0
name=eclipse
comment=ide for all seasons
#exec=/home/username/dokument/eclipse/eclipse
exec=env ubuntu_menuproxy=0 /home/username/dokument/eclipse/eclipse
icon=/home/username/dokument/eclipse/icon.xpm
terminal=false
type=application
categories=utility;application

the row exec=env ubuntu_menuproxy=0 /home/username/dokument/eclipse/eclipse, part referenced in the post i pointed to, is the one that makes menus visible, et voila! :)

in my case this file (eclipse.desktop) resides in /usr/share/applications/

hope this helps.

score:0

close your eclipse if you have already launched eclipse application.

type this command on terminal

$ sudo gedit /usr/share/applications/eclipse.desktop

note : you may found eclipse.desktop file in this path..../usr/share/applications/eclipse

add these lines in this file.

       [desktop entry]
       version=4.3.0
       name=eclipse
       comment=ide for all seasons
       #exec=/home/username/dokument/eclipse/eclipse
       exec=env ubuntu_menuproxy=0 /home/ashish123/adt-bundle-linux-x86-20140702/eclipse/eclipse
      icon=/home/ashish123/adt-bundle-linux-x86-20140702/eclipse/eclipse/icon.xpm
      terminal=false
      type=application
      categories=utility;application

score:0

what if i do not have such a file:

/usr/share/applications/eclipse.desktop

i guess you have that file, if you install eclipse from ubuntu repository.

if you install a standalone eclipse, then that file does not matter. and there is no such file over there.

score:0

looks like the bug is still there, even in 14.10 with eclipse luna. my menus wont show. i setup eclipse using the tutorial here - http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/

and used that tutorial plus the top answer to make the desktop like this -

[desktop entry]
version=4
name=eclipse
comment=integrated development environment
exec=env ubuntu_menuproxy=0 /usr/share/applications/
icon=/opt/eclipse/icon.xpm
terminal=false
type=application
categories=development;ide;java

now, my eclipse won't even run.

with the desktop icon below, at least eclipse opens up -

[desktop entry]
name=eclipse 4
type=application
exec=/opt/eclipse/eclipse
terminal=false
icon=/opt/eclipse/icon.xpm
comment=integrated development environment
nodisplay=false
categories=development;ide;
name[en]=eclipse

edit - menus are now visible. i dunno what happened!

score:1

i solved it just opening my eclipse by terminal as su.

sudo ./eclipse

score:1

the same question has been posted (and answered by me) on askubuntu:

eclipse menus are cut off or don't show

here is the complete answer.


how to solve eclipse menu issues in ubuntu 13.10

(stable way, until someone fixes the bug)

this method takes for granted that you already have your eclipse.desktop file (or that you can alternatively create a new one from scratch). otherwise, you can momentarily take a look at the "fast way" below.

  1. open your eclipse.desktop file:

    sudo -h gedit /usr/share/applications/eclipse.desktop
    

    (if you can't find it in this path, try in ~/.local/share/applications/eclipse.desktop. otherwise, you could have to find yours using locate command).

  2. replace the exec= line with this:

    exec=env ubuntu_menuproxy= eclipse
    

    where "eclipse" is the path to your eclipse executable. in this case it's just "eclipse" since there's a symlink in /usr/bin folder.

    note: if you can't find your eclipse.desktop file, you can simply create one from scratch in the above path, and fill it with these lines:

    [desktop entry] 
    type=application 
    name=eclipse 
    icon=eclipse 
    exec=env ubuntu_menuproxy= eclipse 
    terminal=false 
    categories=development;ide;java;
    
  3. save the file.

now you can run eclipse from its icon as usual.

(fast but repetitive way)

if you haven't got any eclipse.desktop file and you don't want to create it at the moment, you can simply run eclipse with this command:

ubuntu_menuproxy= eclipse

where "eclipse" is the path to your eclipse executable. note that this is just the fast way to run eclipse once. if you don't want to remember this command and use it every time you have to run eclipse, follow the "stable way" above.


sources:

score:1

you can still access the menu using the alt key :)

score:2

for those who use the adt (android developer tools) bundle:

  1. create a launcher for eclipse
  2. edit /home//.local/share/applications/adt.desktop the way described by the accepted solution.

this will bring the menus back, however not integrated into the top bar.

robert

score:2

as for me, i found it better to edit eclipse starter itself, mine is /usr/bin/eclipse (root permission required).

last line:

exec $eclipse "$@"

becomes:

env ubuntu_menuproxy=0 $eclipse "$@"

so, now it doesn't matter how it starts - by desctop icon, terminal command or self-restart after new plugin installation.

score:4

nothing worked for me until i added the following line to the .profile file in my home folder and restarted my computer.

export ubuntu_menuproxy=0

it worked for me.

score:7

1) first, close eclipse and do this:

sudo gedit /usr/share/applications/eclipse.desktop

2) at the end of this file just copy-paste this line

exec=env ubuntu_menuproxy=0 /your/path/to/eclipse/binary

open eclipse, the eclipse's menu will start showing up. (works on on post ubuntu version 12.04)

score:18

i had the same disabled sub-menus problem with eclipse kepler 64-bit on ubuntu 13.10. but i finally managed to get it run with the following little work around. this bug has actually been already reported in this link.

create a eclipse.desktop file in /usr/share/applications/with the following contents.

 [desktop entry]
  version=4.3.0  
  name=eclipse
  comment=ide for all seasons
  exec=env ubuntu_menuproxy=0 /home/username/eclipse/eclipse
  icon=/home/username/eclipse/icon.xpm
  terminal=false
  type=application
  categories=utility;application

or else, you could also try with the following executable bash script file which opens eclipse. place the file in /bin directory or /usr/local/bin.

#!/bin/bash
 export ubuntu_menuproxy=0
 path_to/eclipse/eclipse

score:20

you should type export ubuntu_menuproxy=0 before opening eclipse, and you have to open eclipse from the terminal instead of the global menu.

score:28

this bug has been confirmed in ubuntu 13.10, here is a link. in order to overcome problem, you have to change your eclipse.desktop file in part of exec passing env ubuntu_menuproxy with eclipse path and eclipse will be runnable from launcher with functional menu bar. here is patern for changing eclipse.desktop file:

exec=env ubuntu_menuproxy= path/to/eclipse

score:38

you have to create a new file to open eclipse.

#!/bin/bash
export ubuntu_menuproxy=0
path_to/eclipse/eclipse

Related Query

More Query from same tag