second version through java, but still doesn't work
this version works! But still does nothing