detect version for java app sdk

sdk corrections