Can't open Eclipse in Ubuntu 12.04 (Error launching program) - eclipse

I have a desktop shortcut that's supposed to run eclipse
[Desktop Entry]
Name=Eclipse
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.desktop
The Icon is just the txt icon and it says Error launching program
Also when I try to run eclipse by double clicking the executable nothing happens at all
When I put /opt/eclipse/eclipse in the terminal I get this output.

You downloaded a 32-bit version of Eclipse. This will not run with a 64-bit JVM (long story, native libraries).
Remove your current Eclipse, download a 64-bit version of Eclipse and redo the whole installation. Note that you need Java 8 for the Eclipse version you want to run now, and that may not be easily available for Ubuntu 12.04. Get Java 8 running first or get an older version of Eclipse or update to Ubuntu 14.04 and then Ubuntu 16.04 which has OpenJDK 8 which will do.
Note: These days Eclipse really want you to use their installer. You may want to do that. If you download a zip file anyway, just unzip it and run the eclipse binary. You do not have to put it in /opt unless you want to share with other users on your machine.

Related

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

eclipse cannot be opened after Windows 10 upgrade

After I update my PC from Windows 8.1 to Windows 10, my Eclipse Java SE IDE and EE IDE cannot be opened anymore. I tried to set it to Windows 8 compatible but it didn't work.
What I did to fix it are as following:
I downloaded the latest version of Eclipse and extract it.
Rename the previous one (e.g., rename c://program files/eclipse to c://program files/eclipse_old
Cope new Eclipse to the previous directory (e.g., c://program files/eclipse)
Then, the Eclipse can be run again. Be careful to select the right version of eclipse (32bit vs. 64bit).

run old europa eclipse executable

Downloaded eclipse Europa on laptop as it has 2GB RAM and latest eclipse makes it run slow.
From http://archive.eclipse.org/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip
Unzipped, clicked eclipse.exe See this error:
I have Java 7 installed
Can I get java 5? un install Java 7 first? Any easy way to keep both and run old eclipse too?
I know I have java 7 as this works http://java.com/en/download/installed.jsp ....
Verifying Java Version
A newer version of Java is available
Please click the download button to get the recommended Java for your
computer. Your Java version: Version 7 Update 40
sys vars
java_home=C:\apps\j\j\j1645
Path=C:\apps\j\j\j1645\bin;C:\data\apps\j\maven\bin;C:\Program...
Update
ty guy - copy jre means copy folder called jre that has bin and lib to folder that has eclipse.exe . worked
Copy the jre folder of your java 5 installation into the europa eclipse folder. It will be 'endorsed' and used by the eclipse launcher. Than, feel free to install any other java version on your system. It will not interfere with your eclipse installation.

Ubuntu 12.04 Eclipse Indigo wont start

Please help :( My Eclipse Indigo wont launch. It shows the small blue rectangle and then hangs on that. If I then bring another window infront of this the blue square is now grey. There is no error and there is no error log file in the .eclipse folder.
My Ubuntu 12.04 has been acting funny. The software installer doesnt work and there are errors in the update manager. I finally did command line -update using apt-get and since then my eclipse has been broken.
System :
Ubuntu 12.04 X 64
java -version
java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
I've been burned in the past by the Eclipse package bundled in Ubuntu's repositories. I would recommend downloading directly from Eclipse's website and run from there.
If you're having problems launching the Ubuntu-version, extracting and running manually should give you some indication that the problem is with Java or Eclipse.

Eclipse upgrade killed PyDev

I just upgraded my version of Eclipse on Ubuntu, and now whenever I open a Python file it opens in an external window, and the existing Python files I have open in Eclipse say "Could not open the editor: No editor descriptor for id org.python.pydev.editor.PythonEditor".
I tried uninstalling and reinstalling both Eclipse and the PyDev plugin, and it didn't fix the problem.
From my experience (~8 years) with eclipse don't do in place updates. Always install a fresh version with a new workspace. And re-checkout projects from SCM.
Check first whether all required plugins still work before switching to the new environment.
Make sure your Java version is correct (what your version of PyDev is expecting).
After I updated PyDev (5 min ago) I had the exact same error message displayed in the tabs where I once had python source files opened (No editor descriptor for id).
I updated my Java version from 1.7 to 1.8 with:
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Then to check your version, run:
java -version
You should see something like:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Server VM (build 25.91-b14, mixed mode)
Re-opened eclipse, and the PyDev plugin is working. Yay!
Actually, when you install Eclipse new version then new plugins are installed which lead to change in ubuntu libraries and installing again will not take effect until you install new plugin which is supported
I had same issue, when I updgradet PyDev with newest version 3.*. It needs java 1.7, but I have only java 1.6, so it does not work at all. I uninstalled it and set eclipse to old updating point, but nothing helped. Advise is to use PyDev versio 2.82. You can not find it from update repositories.
Only way is to download old version 2.8.2 from PyDev site, unzip that zip file to eclipse's drop in directory, in linux it is /usr/lib/eclipse/dropins. After unzipping you should see there features- and plugins-directories. And after some starting of eclipse, I could see PyDev again. At first restart of eclipse I could not see PyDev and tried "Check updates" and "Install new software" settind url to /usr/lib/eclipse/dropins but they did not see any software there. But trying to restart few times, old PyDevc 2.8.2 was in eclipse again. Huh.
I disabled PyDev from eclipses "check uopdates" so I don't make that error again, this machine will not get java 1.7 (Ubuntu 10.04 LTS).
I now ran into exactly the same problem when updating to PyDev 5.0 and its definitely an issue that the user is not warned that the program might break on update. However, the simplest solution is to install the new required Java and JRE version, for PyDev 5.0 that's Java 8 and OpenJDK 1.8 (on Linux), and tell Eclipse to actually use the new JRE in the eclipse.ini file, by pointing it to the right path. See https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM on how to achieve this.