How do I determine which eclipse sdk is being used? - linux

I have multiple eclipse SDKs installed on my linux notebook. They are in different directories and I do not remember which is the last one I installed. The command 'which eclipse' gets me /usr/bin/eclipse. /usr/bin/eclipse is a shell script that (among other things) sets ECLIPSE=/usr/lib/eclipse/eclipse. /usr/lib/eclipse/eclipse is a real executable (not a link) that was copied in from elsewhere.
The command 'eclipse' brings up a functioning eclipse. My question is: If I want to expand the capabilities of this eclipse, which SDK do I need to make changes to - ie which SDK do I insert add-ons? That is, given an executing eclipse, how do I find the sdk?

On the Help > About Eclipse dialog click Installation Details for lots of details about the installation. The Configuration tab contains the paths of what is being used.
Adding to Eclipse is generally done using Help > Install New Software and you don't normally need to know where the Eclipse install is for this!

Related

JetBrains Meta Programming System not working

Whenever I try to run the batch script to run MPS, it opens for a split second then immediately closes.
Trying to run it via the command line gives me the following message: "Jetbrains/MPS was unexpected at this time."
I posted the question also on their forum, but I don't seem to get an answer, so maybe someone else had this problem as well.
EDIT: For clarification, I am using Windows 10 on 64 bits, and have tried both version 203.7148.1199 and version 202.8194.1069, installed via the toolbox app and via the standalone installer. I also want to mention that my system meets the requirements to run the program.
EDIT 2: I found out that it works but only if it is installed in the C drive, not in any other drive.
The problem was the path in which MPS was installed. Apparently, it's a bug that I just discovered and the characters '(' or ')' in the installation path make MPS just not run. Probably the bat script doesn't take them right into account or something.
This depends on what OS you are running, and which version of MPS you downloaded. If you used the generic package, you must at least copy the contents from the bin/<os> directory (e.g. bin/win) to the bin directory. Although the recommended way of running vanilla MPS is to download the platform specific package (Windows, Linux or Mac) and then run it from your normal starter (e.g. a menu like the Windows start menu).

eclipse and Java ME, "you must add at least one configuration"

I need to make an app for my cheap phone, and I downloaded eclipse, java sdk, and java me sdk for it. I can't create a simple Java ME project, because when I click File->New->Java ME Project and type name, it says
you must add at least one configuration
Tutorial like this http://www.wideskills.com/j2me/configure-java-me-in-eclipse says to go to Window->Preferences->Java ME->Device Management->Manual Install and provide the path to the Java ME sdk, C:\Program Files\Java_ME_platform_SDK_8.3 in my case. Except it finds nothing for me.
Try to install the Sun Java Wireless Toolkit and give its path to download! It worked for me. Or add the MTJ (Mobile Tools for Java) plugin and we will have an environment ready to create Java ME applications.
To do this, go to the menu Help > Install new software and add the URL: http://download.eclipse.org/mtj/updates/1.1.2/stable

Uninstall eclipse plugin - linux

I'm developing an eclipse plugin and in order to test it I have to install it into my eclipse application regularly. However as I dont't want to change the version of my plugin every time I want to test a new feature I always uninstalled the plugin from within eclipse and afterwards I'd go to the eclipse folder and delete my plugin out of the plugins folder (and delete the respective entries in the eclipse XML-files).
That worked great in windows but I have recently switched to Linux (Mint) and I just found out that my plugin is no longer located in the plugins folder inside the eclipse program directory. Therefore I can't really delete the old plugin whcih then prevents the new version of the plugin from installing properly.
Does anyone have an idea about where eclipse copies the installed plugin or a differerent approch to actually completely uninstall (delete) an installed eclipse plugin?
Okay after searching through my whole filesystem I found it out myself.
Eclipse has a hidden folder in the home directory named .eclipse in which each installed eclipse version has it's sub-directory and in there there is also a plugins and a features folder that then contain the externally installed plugins and features.
It also contains the corresponding artifacts.xml.
I'm not sure whether this behaviour is specific to the Linux Mint OS or rather a new "feature" of Eclipse Neon but if anyone is having the same problem that's were I found it.
Help -> Installation Detail.
Then click the plugin you want removed then press "Uninstall...".
Note: there is a "Plug-ins" tab in the Installation Detail dialog. This is misleading; you are not to click it.
Ps. It might be easier to test the plugin, during development, on a run-time workbench.

How do I open android projects using emacs ede

The emacs documentation http://www.gnu.org/software/emacs/manual/html_mono/ede.html#Android-projects mentions that global-ede-mode supports android projects.
It mentions a function to declare the android sdk location, which I cannot find in emacs.
It also mentions that ede includes tools to interface with android tools, such as build and run emulators. These tools I cannot find either.
Has anybody had any luck using emacs built in ede mode to access android projects?
Currently running lubuntu 14.04 with emacs 24.3.1
The Android support for EDE is part of the CEDET project at http://cedet.sf.net, but that part wasn't included during the last merge from the CEDET repository into Emacs. Apparently that support wasn't removed form the manual. :)
If you download the sources from bzr, you will discover lisp/cedet/cedet-android.el, and lisp/cedet/ede/android.el which is the the support you found described in the manual.
In theory, you might be able to pull those two files down from bzr and just add to your own lisp repository, though it is always safest to download the entirety of the CEDET code and use it's install mechanism to ensure everything works correctly.
Once installed, you will find that the Development menu as project and target options that list things like starting up the debugger, or easily navigating between different .xml sources and your java source.

Easy way of installing Eclipse plugins on Ubuntu

I'm running Eclipse (versions 3.6 and 3.5) on Ubuntu and I'm having trouble installing Eclipse plugins.
There is an easy way to install eclipse plugins in Eclipse, but this doesn't work for me on Ubuntu! This way only works properly under Windows and Mac OSX.
Just like in the tutorial, I create a folder inside my eclipse SDK folder that is named Links.
In this folder, I create a file eclipse-cpp-helios-linux-gtk.lnk or eclipse-cpp-helios-linux-gtk.link that contains this line:
path=/home/taher/opt/eclipse/Third-party-eclipse-links/eclipse-cpp-helios-linux-gtk
and save it, but when I start Eclipse doesn't recognize the plugin!
How can I resolve this problem?
With Eclipse Galileo (3.5) or Helios (3.6), I would rather recommend an external directory called 'mydropins' (for instance), which you can reference from your eclipse.ini, with the option:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/Prog/Java/eclipse_addons
This is called a shared dropins folder.
See in this SO answer an example of plugin deployment in this shared dropins folder.
(Your link refers to the previous provisioning mechanism, pre-p2.
P2 is the new provisioning system introduced late in Eclipse3.4, refined (debugged?) in eclipse 3.5 and 3.6.
See the supported dropins formats to check how you can organize your own personal dropins folder (that you can reuse between several eclipse installations)
You said you are using:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/home/taher/opt/eclipse/Third-party-eclipse-links
That means, under /home/taher/opt/eclipse/Third-party-eclipse-links, you:
won't have any .link file
will copy:
eclipse-cpp-helios-linux-gtk
eclipse
features
plugins
Note: the structure within eclipse-cpp-helios-linux-gtk should be the one describe above, for p2 to pick it up.

Resources