Posts

Showing posts with the label eclipse

How to install MarketPlace Client on Eclipse CDT

Image
If you download the Eclipse CDT version from the eclipse webpage, this version doesn't come with marketplace client by default. Eclipse CDT uses eclipse 3.8 (Indigo version). To install it, you need to do the following steps: Go to Help->Install New Software... Point to Eclipse Indigo Site, If not available add the site "Indigo - http://download.eclipse.org/releases/indigo" Work with the above site Look at "General Purpose Tools"->Marketplace Client After install it, restart Eclipse and you could find Marketplace in Help->Eclipse Marketplace... Now, you can install each plugin through marketplace. Enjoy it!

Resource name without extension to use as variable in external tools on Eclipse

Image
In my last post about how to configure ns3 on Eclipse  I gave the file name through a string prompt variable ("${string_prompt}"). This method is bored, for this reason I searched, how to give the file name without the extension automatically. StartExplorer is a plugin for Eclipse and in their web, they mentioned the following: In addition, StartExplorer itself offers a few variables of its own. ${resource_name_without_extension} : File name or directory name of the resource, without path and without extension (that is, resource, without trailing dot) Also, the plugin Pathtool is another plugin with several variables. I  installed them using the MarketPlace client (see how to install marketplace on Eclipse CDT ), but the variable that I want didn't appear in the variable list. To automate the execution of my simulations, I created a bash script that calls waf (called wafEclipse) and parse the file name to remove the extension .cc This is the wafEclipse co...

Install and configure Eclipse IDE to use with ns3 on Ubuntu

Image
First, you need to download Eclipse CDT (C/C++ Development Tooling): sudo apt-get install eclipse-cdt eclipse-mercurialeclipse Maybe, you will have problems to run eclispse and it will close: An extract of the log: org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.301.dist [1]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4 !MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.301.dist.jar was not resolved. !MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))" To solve it, you must change your java version to other compatible with eclipse. In my case, I was using openjdk9, and I switch it for openjdk8-jre. sudo apt-get install openjdk-8-jre sudo update-alternatives --config java ...