Use java_import to silence deprecation warnings

Gets rid of a number of deprecation warnings every time antwrap is used in jruby