Wednesday, August 26, 2015

Android studio start up issue with tools.jar not found

Error while starting Android Studio on windows with tools.jar not found

Error Message:
'tools.jar' seems to be not in Android Studio classpath.  
Please ensure JAVA_HOME points to JDK rather than JRE.

Solution:
Edit the  AndroidStudio\bin\idea.properties  file
Modify the  value of idea.dynamic.classpath  from flase to true.

So the property value should be as shown below.

idea.dynamic.classpath=true  


Note:  JAVA_HOME should be properly set.
Ex:
JAVA_HOME in System Variables  
E:\Program Files\Java\jdk1.8.0_25

Tuesday, June 2, 2015

Simple way of understanding IoC and DI

Most of the time it's difficult to distinguish between Inversion Of Control (IoC) and Dependency Injection (DI).  Because they both have inter linked and overlaps with each other.

I will try to put it for you to understand easily and draw a thin line between them.

IoC is the way of  inverting (giving) the control to external entity to create the required object on-demand. Where as the DI is a process of creating and injecting the required objects on-demand to support the IoC.

That means IoC uses DI.   DI can be implemented using setter methods, constructors, etc.

Comments are most welcome...