Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Friday, October 25, 2013

Why maven doesn't downloads source and javadoc files

When you can not see any source code in your IDE such as Eclipse this most probably happen because your Maven (if you do use Maven) does not downloaded source jar file (e.g. filename-source.jar).

Maven does not downloads a source and javadoc jar files by default.

This option should be added to its settings file in ~/.m2/settings.xml file like this:

<profiles>
<profile>
    <id>downloadSources</id>
    <properties>
        <downloadSources>true</downloadSources>
        <downloadJavadocs>true</downloadJavadocs>           
    </properties>
</profile>
</profiles>

<activeProfiles>
  <activeProfile>downloadSources</activeProfile>
</activeProfiles>

Here is the link about this topic:
http://stackoverflow.com/questions/5780758/maven-always-download-sources-and-javadocs

Friday, August 24, 2012

How to install Android SDK in Eclipse on Mac

1. Go to the Top menu and chose Help / Install New Software... you will see something like this:


2. As you can see you have to enter Name for the plugin (e.g. Android plugin) and the URL where it is located https://dl-ssl.google.com/android/eclipse

3. Press OK. (If you will do it for the first time you will be able to click OK).

4. Then just follow the instruction of plugin installation process.


Tuesday, August 21, 2012

Debug: how to configure on Mac Eclipse Step Filter to only step through Java code that you've written

If you want to configure Eclipse debugging step filter to only step through Java code that you've written do this (on Mac):

1. Open Preferences window in IDE top menu: Eclipse / Preferences
2. Open Step Filtering settings in Preferences window: Java / Debug / Step Filtering
3. Check packages you want to skip during debugging: 

Monday, August 20, 2012

Android: How to Install Apps using ADB

If you want to install your *.apk of Android application in other way then through IDE as Eclipse use your Terminal and execute command:

adb install path_to_your_application.apk
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/ 

Monday, August 13, 2012

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties

In order to fix this error:

1. Go to the Properties for your project (double click on your project), then find out Adroid Tools/Project Properties (see screenshot)


2. Then change Compile Compiance level to the higher level e.g 1.5 or 1.6 (That is it :) )



Friday, November 11, 2011

How to use Eclipse plugin for Maven

Read this post:
http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html

Tuesday, October 25, 2011

eclipse error unbound classpath variable m2_repo

Everything was great until I changed workspace in Eclipse for other directory. When I opened th project I've got a bunche of errors "unbound classpath variable m2_repo". In this case do this:

1. Go to Preferences/Java/Build PAth/Classpath Variables
2. If there is no such variable as M2_REPO - add it (press New...)
3. Ussually a correct path for this variable is ${user.home}/.m2/repository

That's all.

Sunday, July 17, 2011

How to add JARs file to Eclipse

To be brief on it: if you want to add JAR file to Eclipse project do it trough adding it into Properties/Build Path/Libraries/Add JARs:

 If you want to know the different ways to add JARs file to your project in Eclipse check this link.