It worked by manually setting JAVA_HOME. Please let me know if there is a cleaner way to have both java version.
On Thu, Oct 10, 2013 at 3:35 PM, shrinidhi chaudhari < [email protected]> wrote: > I too have the setup on CentOS. What do you suggest? > > > On Thu, Oct 10, 2013 at 3:32 PM, shrinidhi chaudhari < > [email protected]> wrote: > >> [shrchaudhari@localhost incubator-drill]$ java -version >> java version "1.7.0_25" >> OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64) >> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) >> >> >> On Thu, Oct 10, 2013 at 3:26 PM, Michael Hausenblas < >> [email protected]> wrote: >> >>> >>> > *Java version:* >>> > >>> > [shrchaudhari@localhost incubator-drill]$ sudo alternatives --config >>> java >>> > >>> > There are 2 programs which provide 'java'. >>> > >>> > Selection Command >>> > ----------------------------------------------- >>> > *+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java >>> > 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java >>> >>> I'd suspect the wrong Java version is used (Drill needs Java 7). >>> >>> Can you paste the output of the following please? >>> >>> $ java -version >>> >>> >>> >>> Cheers, >>> Michael >>> >>> -- >>> Michael Hausenblas >>> Ireland, Europe >>> http://mhausenblas.info/ >>> >>> On 10 Oct 2013, at 10:50, shrinidhi chaudhari < >>> [email protected]> wrote: >>> >>> > Hi, >>> > I am setting up Drill development env but got stuck while building >>> through >>> > maven. >>> > * >>> > * >>> > * >>> > * >>> > *I get the following error while doing a *$ mvn clean install >>> > >>> > Failed to execute goal >>> > org.apache.maven.plugins:maven-compiler-plugin:3.0:compile >>> > (default-compile) on project drill-protocol: Fatal error compiling: >>> invalid >>> > target release: 1.7 -> [Help 1] >>> > >>> > *Java version:* >>> > >>> > [shrchaudhari@localhost incubator-drill]$ sudo alternatives --config >>> java >>> > >>> > There are 2 programs which provide 'java'. >>> > >>> > Selection Command >>> > ----------------------------------------------- >>> > *+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java >>> > 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java >>> > >>> > >>> > >>> > *Protobuf version:* >>> > >>> > [shrchaudhari@localhost incubator-drill]$ protoc --version >>> > libprotoc 2.5.0 >>> > >>> > >>> > -- >>> > Shrinidhi Chaudhari*.* >>> >>> >> >> >> -- >> Shrinidhi Chaudhari*.* >> > > > > -- > Shrinidhi Chaudhari*.* > -- Shrinidhi Chaudhari*.*
