getting api workign with java at least