diff --git a/lib/traject/solrj_writer.rb b/lib/traject/solrj_writer.rb
index <HASH>..<HASH> 100644
--- a/lib/traject/solrj_writer.rb
+++ b/lib/traject/solrj_writer.rb
@@ -164,7 +164,8 @@ class Traject::SolrJWriter
     server        = server_class.new( settings["solr.url"].to_s );
 
     if parser_name = settings["solrj_writer.parser_class_name"]
-      parser = org.apache.solr.client.solrj.impl.const_get(parser_name).new
+      #parser = org.apache.solr.client.solrj.impl.const_get(parser_name).new
+      parser = Java::JavaClass.for_name("org.apache.solr.client.solrj.impl.#{parser_name}").ruby_class.new
       server.setParser( parser )
     end
jruby class name reflection in a way that will work with older jrubies