lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@odoko.co.uk>
Subject Re: Compiling SolrJ for Java 6
Date Tue, 03 Nov 2015 23:19:06 GMT
I think it was around 4.7 that the Java7 requirement was introduced. You
may find trying 4.6 will get you what you are needing. I'd expect the
artifacts in the Maven repo should be compiled with Java6 from that
point backwards.

Upayavira

On Tue, Nov 3, 2015, at 10:33 PM, Erick Erickson wrote:
> You're on your one if you try to do this. Solr 4.10 requires Java7. I
> don't believe Solr will even compile under 1.6.
> 
> You may bet lucky and get SolrJ to compile, but whether it works or
> not is chancy at best.
> 
> Best,
> Erick
> 
> On Tue, Nov 3, 2015 at 2:13 PM, O. Olson <olson_ord@yahoo.it> wrote:
> > Hi,
> > I'm looking to compile the SolrJ for Solr 4.10.3 for running on Java 6.
> > (Due to choices beyond my control, we are on this older version of SolrJ and
> > Java 6.) I'm looking for any pointers on how I could do it?
> >
> > I tried downloading the source from SVN (for Solr 4.10.3, not the latest
> > version). I then went into the /solr/common-build.xml file and changed the
> > javac.target to 1.6 i.e.
> >   <property name="javac.target" value="1.6"/>
> >
> > I then ran "ant dist-solrj" and it compiled the SolrJ jar, but in Java 7. I
> > wanted Java 6.
> >
> > I should admit that the manifest file has "X-Compile-Target-JDK: 1.6"
> > However if you look at any of the class files (say SolrRequest.class) using
> > "javap -verbose" you get "major version: 51" which means Java 7.
> >
> >         Besides making the change in the /solr/common-build.xml, is there some
> > other change I need to make to be able to compile SolrJ for Java 6?
> >
> > Thank you,
> > O. O.
> >
> >
> >
> >
> > --
> > View this message in context: http://lucene.472066.n3.nabble.com/Compiling-SolrJ-for-Java-6-tp4238068.html
> > Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message