Execute pre-packaged Eclipse application on Mac - eclipse

I downloaded a pre-packaged Eclipse installation to my Mac (not from the Eclipse website), and it has a "exec" file called Eclipse which MacOS suggests to open with Terminal. In addition, there's an eclipse.ini, and other files and directories. How do i actually open this Eclipse?
Note - I am working on a project that has a number of plugins that have to be compatible with each other, hence i was told to use this pre-packaged Eclipse installation.

Related

Eclipse Neon 2 & 3 keeps Resetting the Workspace and Plugins

Have installed Eclipse Neon 3 x86_64 bit on macOS Sierra...
Proceeded by picking a workspace folder and installed the following plugins:
Subclipse 1.10.13 (by dragging the icon on to the workspace from https://marketplace.eclipse.org/content/subclipse)
Installed the following plugins (by going to Help -> Install New Software -> All Available Sites and expanded Web, XML, Java EE and OSGI Enterprise Development):
Eclipse Java EE Developer Tools 3.8.0.v201701262139
Eclipse Java Web Developer Tools 3.8.0.v201702270442
Eclipse Web Developer Tools 3.8.2.v201702270442
JST Server Adapters 3.2.400.v201606081655
JST Server Adapters Extensions 3.3.501.v201609071751
JST Server UI 3.4.300.v201606081655
Everything works (plugin functionality) but everytime I close Eclipse, it brings up the default dialog asking for a workspace and is completely fresh (no plugins and preferences...). I have to manually install these plugins every single time I restart Eclipse!
I've deleted the following directories and files:
~/.eclipse (folder);
~/Library/Saved Application/org.eclipse.eclipse.savedState;
~/Library/Preferences/org.eclipse.platform.ide.plist;
~/Library/Caches/org.eclipse.platform.ide;
And, also unzipped Eclipse into a different folder and specified a new workspace and after installing the plugins and restarting Eclipse, its completely fresh again!
This is very annoying and also disappointing...
I even tried to put -clean as the first line of the eclipse.ini file but it didn't help any...
What's weird is that this is happening on my company issued MacBook Pro but not my personal MacBook Pro (which is the exact same model and year as the company issue one)...
Any suggestions would be most appreciated!
Have you checked Eclipse Bugzilla for a similar issue?
It looks like you are running into this:
Bug 507328 - Eclipse forgets about global settings and installed features
It's a feature of macOS introduced with Sierra called "App Translocation" or "Gatekeeper Path Randomization". Try unzipping Eclipse and moving it (drag and drop) with Finder to a different location. This should set a flag which disables Gatekeeper Path Randomization. However, it's important this this is done from within Finder.
The Eclipse Oxygen packages will ship as DMG which will motivate users to drag and drop the Eclipse.app bundle into the Applications folder using Finder. There is an Apple bug here where Apple explicitly states that Finder may be able to opt an app out of Gatekeeper Path Randomization.
To check whether Gatekeeper Path Randomization is happing in Eclipse perform the following:
Open Eclipse > About Eclipse
Click Installation Details
Navigate to tab Configuration
Check the value of osgi.install.area property
If it points to some random looking path with /var/private that path randomization is in effect.
The situation may become more complicated in future macOS versions, though.

Portable Eclipse Juno with plugins

I am currently trying to make an Eclipse istallation with installed plugins portable, so that you only have to copy the whole "eclipse"-folder to another system and have the same setup as on the original system.
My problem now is, that since eclipse 4.2 (?) when using Help > Install new Software... plugins are installed externally into the folder
C:/Users/Username/.eclipse/org.eclipse.platform_4.2.0_identifier
and not into the folder where the "eclipse.exe" is located:
C:/Program Files (x86)/eclipse
Now my question is if it is possible to make eclipse install additional plugins into the plugins/features-folder of eclipse's home folder (C:/Program Files (x86)/eclipse).
Unfortunately, it isn't possible to use the dropins-folder, because one plugin that shall be installed only exists as an update site.
I'm using
Windows 7 Professional Service Pack 1 64bit
with
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
32-bit (to provide portability).
Greets :)
Do not put your eclipse installation under the "Program Files" folder. Eclipse will install all plugins to its own folder by default, unless that folder is not writable from Eclipse. And the "Program Files" folder should not be writable by you (unless you are using administrative access rights). Only the trusted installer service account should modify that folder (following Windows guidelines).
Therefore unzip Eclipse somewhere else into a location where anyone is allowed to write, install your plugins and zip the whole folder again.
As an alternative to that ZIP package you may want to look at File -> Export -> Install -> Software items to file, where you can export (and re-import) a list of your already installed plugins.
What mack is trying to do should work, this is essentially what the eclipse foundation do to provide the various distros.
The plugin that is only available as an update site could be installed into and existing in-installation then copied to the new distro. Only trick is making sure you have all the feature and plugin jar files.

eclipse indigo java perspective not visible

I installed Eclipse Platform Version: 3.7.2 on Ubuntu 12.04 LTS. My Ubuntu Software Center shows that Eclipse Extensible Tool Platform and Java IDE (eclipse 3.7.2-1) is installed. Also Eclipse Integrated Development is also installed (eclipse-platform 3.7.2-1). However when I launch Eclipse, I am not able to get a Java perspective and not able to create a Java project. When I click on Open Perspective: I see CVS Repository Exploring, Debug, Resource (default) and Team Synchronizing. Thanks in advance.
You can click open perspective > others and find Java perspective. please refer this picture:
First, you should not install Eclipse from any Linux repository or package manager; just download it directly from the Eclipse web site. Also make sure you're using the Oracle JDK, not gcj. There are many problem reported with running Eclipse under gcj. To specify the JVM for Eclipse to run in, use eclipse.ini
Second, what you have is the Eclipse Platform, which does not include any IDE features; it's just the base platform on which Eclipse is built (another problem with getting Eclipse from a linux repo is that you don't really know what they've packaged and delivered to you). For Java development, you probably want the Eclipse IDE for Java Developers or Eclipse IDE for Java EE Developers packages from the downloads page.
Close Eclipse and rename the .eclipse directory in your home directory with another name, for example .eclipseSAVE.
Restart Eclipse and in perspective you should find Java.

How do you do install ada into eclipse?

I've tried loads of sites to get GNATBench into my eclipse ide but can't seem to find the right link. If I could just download it through the help menu in the ide, that would be perfect.
No joy on Eclipse Marketplace site.
Gnatbench 2.6 is there but no visible/manageable means of downloading it.
So go to:
http://libre.adacore.com/download/configurations
Click on GNAT 2012 and GNATBench 2.6.0, ensuring that all constituent packages are also checked.
Click on "Sources" for both GNAT and GNATBench.
Then select all packages for each.
Select and check all other packages you're interested in by the same procedure.
Click on "Download Selected Files" and save the downloads folder on your desktop.
Move the downloads folder to your Administrator account, unzip, read the README file and first install GNAT 2012.
Then unzip the GNATBench 2.6, read the README and set about installing it from Eclipse :
Open Eclipse.
Help > Add > Local > Now browse to the folder where the unzipped GNATBench is.
Click OK.
This should return you to the Eclipse Install window and you'll see GNATBench installation units listed on the centre of this window.
Check the GNATBench option for AdaCore Plugins for Eclipse/CDT only.
Leave the WindRiver interface unchecked -- unless you have WindRiver installed on your PC.
Complete the installation.
Open Eclipse. Help > Add > Local > Now browse to the folder where the unzipped GNATBench is. Click OK.
Should be
Open Eclipse. Help > Add > Archive and browse folder where the zipped GNATBench is located. At least this worked for me.
If you are using Mac OS X, you might not find gnatbench available on the list, you will need to get it from x86 Windows (32 bits) and GNAT GPL from 2012 to 2014.
Just a few hints I used to finally resolve issues during installation of the GNATbench plugin for Ada under the Eclipse IDE for Windows 10 Professional 64-bit environment...
Look at Step 5 for installation instructions:
Only use the 32-bit versions of GNATbench (2014:
https://www.adacore.com/download/more gnatbench-2.8.1-bin.zip)
[Platform is x86 Windows (32-bit)]
Install the latest of both 64-bit and 32-bit versions of the Oracle
JDK 8
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Only use a 32-bit version of Eclipse (Oxygen.3a Release (4.7.3a):
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/3a/eclipse-java-oxygen-3a-win32.zip)
Install the C/C++ Eclipse toolset
Follow installation instructions here:
http://docs.adacore.com/live/wave/gnatbench-src/html/gnatbench_ug/src/getting_started/getting_started.html#
This is what finally worked for me after many attempts to use the 64-bit version of Eclipse IDE (Version: 2018-09 (4.9))

Qt Eclipse Integration not working

I was hoping to use the Qt plugin with Eclipse. The installation is very simple - just expand a tarball in the appropriate directory. After doing so, I can see trolltech folders under eclipse/features and eclipse/plugins. However, when I try to create a project, I see no sign of any Qt option. Nor do I see Qt listed in the Installed Software listing of plugins or features.
Eclipse: Galileo Build 3.5.2
CDT: 6.0.0.2
O/S: Ubuntu 10.10 i686 2.6.35-28-generic
Plugin in tarball: qt-eclipse-integration-linux.x86.1.6.1.tar.gz from here: http://qt.nokia.com/developer/eclipse-integration/
Starting Eclipse with -consolelog -debug didn't offer any enlightenment
Have the Qt plugins aged past their use-by date?
Update
Installing to /usr/share/eclipse is a mistake
Installing to /usr/lib/eclipse works
I would suggest that that the instructions on the Qt page could use some revision. Instead of saying:
Find your eclipse/plugins folder
It might be better to add: The eclipse folder should contain the eclipse executable, eclipse.ini, the plugins directory, and the features directory.
This would have kept me from being fooled by /usr/share/eclipse, which has a feature directory and a plugins directory, but is not the correct place to install additional plugins.
Try untaring under the dropins directory instead. Modern versions of Eclipse will not pickup plugins overlaid over the existing plugins and features directories. If dropins doesn't work then these plugins declare dependencies on older versions of eclipse components.
Find out where your eclipse installation lies in terminal. I have mine extracted to ~/tools/eclipse/
$ which eclipse
Navigate to the folder and extract the plugins into the plugins folder, the features into the features folder.
Start Eclipse back up and go to Window->Preferences->QT. Click Add and navigate to the executable directory. For me as of version 4.8.1 it was in /Qt/Desktop/Qt/4.8.1/gcc/bin. The includes directory auto updated to /Qt/Desktop/Qt/4.8.1/gcc/include, click Apply and restart if necessary.
After this I can create a new Qt Gui projects, Qt gui classes, Qt resource files and Qt console projects in addition to Qt Designer forms.