Friday, July 4, 2014

USB device drawing too much power has been disabled.

I got an error while connecting my nexus tab to macbook pro. I solved this problem by using a different cable to connect. Hope this helps someone.

Tuesday, July 1, 2014

Setting JAVA path on MAC OS


export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
GAGANDSI-M-D04T:bin gagandsi$ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
    1.8.0_05, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
    1.6.0_65-b14-462, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-462, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
To use 1.6 jdk use below command
/usr/libexec/java_home -v 1.6