Ehi Vito! Try posting your log as code, it will be much clear.
As concern your problem: if you open a terminal can you run the command “java”?
The problem seems to be this one:
Error: JAVA_HOME is not defined correctly. MainFrameActions: Packaging (Android (All)): We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java
The JAVA_HOME variable indeed is not indispensable, I don’t have it in my shell but I can package anyway.
I would try to fix this first, you probably just need to install the java optional package (not included by default anymore in Yosemite)
Check out this article for more info: