Update and Install problems with Eclipse - linux

When I try to install/update any plugin from Help -> Install New Software I receive error messages like this:
No repository found at http://download.eclipse.org/releases/galileo.
or
Unable to connect to repository http://pydev.org/updates/site.xml
Invalid argument
This happens with all Eclipse versions.
I use Eclipse on Debian Sid.

I had the same problem, try running eclipse with these options:
-vmargs -Djava.net.preferIPv4Stack=true
It worked for me
(see https://lists.launchpad.net/openjdk/msg03123.html)

Try disabling proxies inside Eclipse. This helped me once.

Here are some generic eclipse error resolution steps I use:
1) Try run eclipse with the -clean option. This should cleanup some stuff. No clue if it helps with your problem, but maybe worth a try?
2) Delete .metadata directory (or move it temporarily away) from your workspace and run eclipse with the -clean option again.
3) (Skip if you have tried this) Try download another eclipse installation into another local directory and try to see if that works out of the box. If it works, your former eclipse installation was bugged. If it does not work, I suggest checking your general network access to the specific urls you mention.

Related

Eclipse crashes in elementaryOS

Everytime I try to run eclipse, my system crashes. That happens when it appears the window that asks me to select the workspace. I've installed JDK and Maven, and downloaded Eclipse from the official website
It's a bug in the SWT porting on GTK3. There is no real solution, but there is a workaround by forcing Eclipse to use GTK2.
I assume your Eclipse folder is /opt/eclipse and that you don't have write permissions in this folder. Please change the commands, if your set-up differs.
There are two ways to apply this workaround, a long and explanatory way, and a short one for the lazy ;)
Modifying eclipse.ini by hand
You need to open eclipse.ini in your Eclipse folder:
sudo -i scratch-text-editor /opt/eclipse/eclipse.ini
and add the following lines:
--launcher.GTK_version
2
It's important to add these lines before --launcher.appendVmargs, otherwise Eclipse will crash.
for more reference, plz check
https://elementaryos.stackexchange.com/questions/1276/eclipse-mars-freezes-after-splash-screen
I was having this problem (Eclipse freeze, crash, with elementary OS Freya).
My Eclipse installation was done using the installer, so my path was different to what Prade jo indicates, but his solution was right on.
sudo scratch-text-editor
Browse to home -> yourUserName -> eclipse -> java-mars (or whichever version you have) -> eclipse -> eclipse.ini
The line before "--launcher.appendVmargs", add:
--launcher.GTK_version
2
Should now be good to go.
I had the same issue with Oxygen and Elementary Loki. Changing to GTK2 worked for me.
Try running eclipse from the terminal to see the problem. Most likely it is an X server problem.

How to reinstall Eclipse on Linux?

I used the Software Manager in Linux Mint to install Eclipse Platform. It was working yesterday, however, now whenever I run it I get the following error message:
The Eclipse executable launcher was unable to locate its companion shared library.
I tried uninstalling it and then installing it again. Much to my confusion, this did not work. The error message still persists. It implies Eclipse requires a shared dependency that it cannot find. Is there anyway to find out what this is and install it? I've tried 'apt-get dist-upgrade' to update packages but this didn't resolve the issue at hand.
I have been using linux and Eclipse for years, but I would never suggest anyone install Eclipse from the platform repositories for any distribution.
Get your eclipse zips directly from Eclipse.org
Personally, I would just "Google it." (Or, in my case, "DuckDuckGo it.") Put the exact error-message text in double quotes to tell the search-engine that you are looking for the exact phrase.
DDG promptly referred me to this page: http://veeddie.blogspot.com/2010/06/eclipse-executable-launcher-was-unable.html

Subclipse cannot load default SVN client, even though everything is installed properly

I'm having a problem with Subclipse, when trying to do anything like committing, updating or viewing history the first time nothing happens, and the second time I try this error show up:
All this used to work just fine but suddenly it stopped working. All the required packages are installed:
The "SVN interface" option in the preferences is empty/greyed out:
I have another Eclipse installation (Java EE) which has the same packages installed and everything is still working fine there.
I've already tried reinstalling all the SVN packages but to no avail. I'm running Eclipse Kepler on Linux Mint 16 Petra, SVN is version 1.7.9.
Any help would be greatly appreciated.
EDIT: I figured out that the other Eclipse installation had different (older) versions of the plugins. After updating these, that installation also stopped working. I suspect that my SVN version (1.7.9) is too old. I see 1.8.x has already been released, how can I install that version in my Linux installation? Running apt-get update/upgrade doesn't do it. I've seen some people talking about running dist-upgrade but that has broken things in the past so I'm very reluctant to do so unless absolutely necessary.
EDIT: I managed to install subversion 1.8.10 using these steps, but to no avail.
I managed to solve the issue my removing SVNKit and installing the "Subversion JavaHL Native Library Adapter" instead. I tried that before but it did work after I had also updated subversion to 1.8.

Eclipse with JDK in Ubuntu 10.04

A short question: My eclipse project is set to use the "sun-java-6-jdk"-supplied JDK library, but I cannot Ctrl-click to view source (no source attached), as I can do out-of-the-box on Windows. How do I make this work?
You need to install the openjdk-6-source package and to attach the sources (located in /usr/lib/jvm/java-6-openjdk/src.zip) to the JDK under Eclipse.
Personally, I prefer to use sun-java6-jdk - the source package being sun-java6-source - that you can get from the Canonical Partner Repository:
deb http://archive.canonical.com/ lucid partner
Then, attach the sources located in /usr/lib/jvm/java-6-sun/src.zip
Presumably that's because it hasn't got source with the JAR so it's not finding it automatically. Your best bet is to consult the ubuntu package manager and see if there's a src, or if it's elsewhere on your system (/use/src or /use/local are places to start looking).
Once you've got it, you can right-click on the JAR in the project and point to the location of the Java source in the "source" property.
I think you need to go to the settings for your installed JRE, edit it, and set the source attachments manually.
Here's a link to Eclipse's help: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/java/debug/ref-installed_jres.htm

org.eclipse.swt.SWTError: No more handles - after installing ibus

I needed to install ibus on Ubuntu 19.04 LTS and shortly after doing so I started getting this error when trying any file in Eclipse 2019.
org.eclipse.swt.SWTError: No more handles
I tried installing the newest version thinking something broke in Eclipse, but I couldn't even install because I got the same error in the installer.
I didn't realize right away that ibus was the cause because I didn't try using Eclipse for several hours after installing it.
After a lot of searching and trying just about everything, the answer turned out to be the need to set the GTK mode before launching Eclipse.
export GTK_IM_MODULE="ibus"
To make my life easier in the future, I created a script file to do this any time I started Eclipse. This is a simple text file with the executable flag set.
#/bin/bash
export GTK_IM_MODULE="ibus"
~/Programs/eclipse/php-2019-03/eclipse/eclipse
I hope this saves others a great deal of searching.

Resources