Trunk (5.x) requires Java 1.7, 4.x still works with 1.6. Check the CHANGES.txt, you'll see it near the top.
-----Original message----- > From:Ryan Cutter <ryancut...@gmail.com> > Sent: Monday 6th January 2014 16:27 > To: solr-user@lucene.apache.org > Subject: Branch/Java questions re: contributing code > > 1. Should we be using Java 6 or 7? The docs say 1.6 ( > http://wiki.apache.org/solr/HowToContribute) but running 'ant test' on > trunk/ yields: > > ..../lucene/common-build.xml:328: Minimum supported Java version is 1.7. > > I don't get that error with branch_4x/ which leads to my next question. > > 2. Should work toward 4.X be done on trunk/ or branch_4x/? It sounds like > patches should be based on trunk then it gets ported as necessary. > > Thanks! Ryan >