Tmp folder fix & Java error handling working now

Before was using system tmp and java error handing still has bug but
works for now