Thank you Erick. I'm sorry I did not clarify this in my original message. 

I'm compiling Solr (or SolrJ) under Java 7. I'm aware that it requires Java
7 to compile, and that's why I have not changed the "java.source" value in
the common-build.xml file. SolrJ compiles fine. My problem is that I would
like to run it under Java 6 i.e. JRE 6. In my personal projects I do this by
supplying the "-target 1.6" flag to the Java Compiler "javac" and it works
fine. (I think I use Java 7 features, but I'm not sure. Anyway, the compiler
is Java 7, but the execution eviroment is Java 6). 

I'm not familiar with Java, but I thought that you could compile Java 7 code
to run under Java 6. Is this wrong? I know you get some warnings at the
compile time, but I have ignored them in the past and my code worked fine. 

Thank you again and also to Upayavira. I'm wondering if there is a way out.
O. O.




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





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Compiling-SolrJ-for-Java-6-tp4238068p4238081.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to