"ant server" should be sufficient. "dist" is useful for when you have custom _external_ programs (say SolrJ) that you want all the libraries collected in the same place. There's no need to "ant compile" as the "server" target
I assume what you're seeing is a ClassNotFound error, right? I'm a bit puzzled since that filter isn't a contrib, so it should be found. What I'd do is just do the build first then start the example, "bin/solr start -e techproducts" Don't specify solrhome or anything else. Once that works, build up from there. Best, Erick On Fri, Jun 2, 2017 at 3:15 AM, Nawab Zada Asad Iqbal <khi...@gmail.com> wrote: > Hi, > > I have synced lucene-solr repo because I (will) have some custom code in > lucene and solr folders. What are the steps for starting solr server? My > schema.xml uses ICUNormalizer2CharFilterFactory (which I see in lucene > folder tree), but I don't know how to make it work with solr webapp. I know > the (luncene ant > target) 'compile', (solr targets) 'dist', and 'server', but the order is > not clear to me. > > I have compiled lucene before doing 'ant server' in solr folder, but I > still see this error when I do 'bin/solr start -f -s ~/solrhome/' :- > > Caused by: org.apache.solr.common.SolrException: Plugin init failure for > [schema.xml] fieldType "text": Plugin init failure for [schema.xml] > analyzer/charFilter "nfkc": Error loading class > 'org.apache.lucene.analysis.icu.ICUNormalizer2CharFilterFactory' > > > > Thanks > Nawab