Besides the great pointers on the IntegratingSolr page, libraries integrating Solr have their own unique challenges that the rest of the computer programming world is advised to steer clear of.
You can also use marc4j's command-line utilities to convert binary marc records to MARCXML, and use XSLT to convert these to solr add documents, but be warned that this process is significantly slower than other methods mentioned here.