My computer is a little old and I don't want to use Windows anymore. So I switched to the latest Ubuntu11.04. the tragedy of the result was born. because 11.04 adopts a new menu display mode, it is okay to install eclipse and can be used normally. However, after installing MyEclipse8.5, only the Windows button is left on it, all others have disappeared ....... so I found a usable method on the Internet and saved it as a record to my blog. The following is the original article: I read a foreign post and found a scrip
My computer is a little old and I don't want to use Windows anymore, so I switched to the latest Ubuntu 11. 04. the tragedy of the result was born. because 11.04 adopts a new menu display mode, it is okay to install eclipse and can be used normally. However, after installing MyEclipse 8.5, only the Windows button is left on it, all others have disappeared .......
So I searched for it online and finally found a usable method. Now I am storing it as a record in my blog. The following is the original article:
After reading the post from abroad, I found a solution using script.
The display menu of MyEclipse is nothing more than an export parameter before it is started, that is
Export UBUNTU_MEMUPROXY = 0
Then start MyEclipse and the menu will appear.
However, we cannot set parameters every time we start the program. Therefore, write a script and replace the MyEclipse startup command with the prepared script file in the menu item. That's what I did. It's no different from clicking a menu. You can try it by yourself. The following is my own sh script.
#! /Bin/bash
Cd/opt/Genuitec/myEclipse
Export UBUNTU_MENUPROXY = 0
Nohup./myeclipse &
Rm./nohup. out
Save the above script as MyEclipse. sh
Then chmod + x MyEclipse. sh
Put this file in the same folder as MyEclipse.
Then set the menu, and the graphical interface is not easy to describe. You can check it out by yourself.
To Start menu, press winkey and enter menu to go to the configuration page of main menu.
In the above files,/opt/Genuitec/MyEclipse is the folder of my MyEclipse executable files, which varies with machines.
The nohup command is used to create a sub-process and then run it on the system process. No. Once the shell is closed, the sub-process of the shell is closed. The result is that you click the menu item, that is, do not start. In fact, it was started and killed again.
This is almost the case. unity is a very interesting little thing. After practice, it is now normal to use MyEclipse.