Ubuntu Eclipse Icon Creation - linux

I was tring to install eclipse on ubuntu. What I did:
I unzipped the tar archive of eclipse.
I tried to start eclipse from the command line - like this - ./eclipse. It works.
But then I tried to create a desktop icon with:
gnome-desktop-item-edit ~/Desktop --create-new.
In a new icon I showed the path to the eclipse executable which I could launch from the command line. But then eclipse does not start stating:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/artem/eclipse/jre/bin/java
java in your current PATH
And also I get a message in the terminal (at some stage it appeared):
(gnome-desktop-item-edit:8998): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.DSV8LW': No such file or directory
I am using Ubuntu 12.04 x32 and eclipse Juno.
PS. PATH variable points at jdk/bin and JAVA_HOME - to the jdk folder

You can make launch "icon" by using symlink:
ln -s [TARGET DIRECTORY OR FILE] [SHORTCUT]

You can do it just with Graphic interface
Right click on eclipse. Choose "Make link". You will get a short cut in the folder. Copy the shortcut to the Desktop. Done :)
P.s:
By the way, if you don't like default icon of the shortcut. They look all the same and ugly. Just right click on the shortcut and click on the small icon on the left, then choose an image icon which you like (E.g: Eclipse icon).

Related

Changing CAPACITOR_ANDROID_STUDIO_PATH in Arch Linux

I'm trying to set up my development environment for CapacitorJS on Arch Linux.
I followed the documentation and added
CAPACITOR_ANDROID_STUDIO_PATH=/usr/bin/android-studio
to my systems environment variables (not the project) but I'm still getting the same error
[error] Unable to launch Android Studio. Is it installed?
Attempted to open Android Studio at:
/usr/local/android-studio/bin/studio.sh
You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH
environment variable.
Even though It's never pointed to /usr/local/android-studio/bin/studio.sh
I ran whereis android-studio and got android-studio: /usr/bin/android-studio, so I thought that would be the correct path, but every time I run npx cap open android it says it's trying it launch from the same path and never changes
It depends how you've installed it, for example Toolbox installs it inside the user's home directory.
nano ~/.bashrc
export CAPACITOR_ANDROID_STUDIO_PATH=~/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/bin/studio.sh
locate studio.sh might be able to find it, too.

Eclipse command not found in linux while in the eclipse folder

I downloaded the correct version of eclipse that will work on my linux machine from the website. The structure looks like this: eclipse/eclipse. I was in the eclipse folder, and I typed in eclipse in linux to start the IDE. It showed the error: eclipse command not found.
This is normal. For safety, the current directory is not part of the path used to find executables. Use ./eclipse to refer to the binary explicitly.

Unable to use Eclipse on Linux Unity

I'm new to Linux. I'm trying to install Eclipse, but it won't let me extract the files.
I have eclipse-jee-mars-R-linux-gtk.tar.gz open under "Network". Inside that I have an eclipse folder. I click on that and I'm unable to click eclipse, the icon is paper with binary on it(so is a bunch of other files.
Im on a chromebook and I've installed Linux Unity.
EDIT: Ive now been able to unzip the file. But now when I click the Eclipse.exe, nothing happens.
Unpack it with
tar xvzf eclipse-jee-mars-R-linux-gtk.tar.gz
Then go to the eclipse-folder and start it with
./eclipse
from the shell. That should give you some information, if it's not successful.
Maybe you have to make it executable before. To do so type
chmod +x eclipse
If you have downloaded a linux version, there should be nothing like "eclipse.exe".

How should I patch fonts for use with the vim plugin Powerline?

My operating system is Windows 8.1 64 bit, I have installed fontforge and fontpatcher, but I don't know how to use it to patch fonts. Could you give me a usage demo,thank you very much! This is the web site for powerline
but I can't find usage. This is fontpatcher's project home on github
I have tried to use the python powerline-fontpatcher command to look for help, but failed.
Steps
follow the windows installation instructions here
git clone this repo
Copy the font file you would like to patch into the downloaded repo
cd <repo location>
fontforge -script font-patcher <path to font>
Wait for the script to finish and then open the newly created font file, install it
Restart your terminal and select the newly created font in preferences

Creating an Application Launcher for GNOME 3 in Ubuntu

I have Ubuntu 12.04 LTS installed on my machine. I also have installed GNOME 3. I then installed the IDE IntelliJ without issue. However I installed it to a custom location and now the only way to run it is through the terminal via "./idea.sh". I would like to create an application launcher so I can launch IntelliJ via the applications list in the GNOME 3 windows manager. How would I do such a thing via the terminal, not through a 3rd part utility. I would also prefer to have the correct icon for the launcher, not a generic one. Thank you for the help.
Run Intellij, then go to Tools > Create Desktop Entry.
create a file called intellij.desktop in the directory /usr/share/applications/
my file looks like this
[Desktop Entry]
Name=IntelliJ IDEA Community Edition
Comment=Free Java, Groovy, Scala and Android applications development
Exec=/path/to/your/bin/idea.sh
Path=/path/to/your/bin
Terminal=false
Icon=intellij-idea-ce
Type=Application
Categories=Development;IDE
for more details check this website, http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
edit: mlissner (Thank you!) mentioned that intelliJ in particular implemented a feature to add that Icon/Launcher automatically. Just open IntelliJ IDE, go to Tools and click Create Desktop Entry...
On Ubuntu 20 (Focal Fossa), create a launcher with alacarte.
The generated .desktop file is automatically placed in ~/.local/share/applications.
Move it from there to /usr/share/applications/ if it is to be accessible to all the computer's users.
You can create launcher using following steps
step 1) Install gnome-panel
sudo apt-get install --no-install-recommends gnome-panel
step 2) run gnome-desktop-item-edit
gnome-desktop-item-edit ~/.local/share/applications --create-new
step 3) fill the required values in widget

Resources