Javac:target release 1.5 conflicts with default source release 1.7

Source: Internet
Author: User

Questions:

[[email protected] rk3288-4.4.x]$ mmm frameworks/base

============================================
Platform_version_codename=rel
platform_version=4.4.4
target_product=rk3288
Target_build_variant=eng
Target_build_type=release
target_build_apps=
Target_arch=arm
Target_arch_variant=armv7-a-neon
TARGET_CPU_VARIANT=CORTEX-A15
host_arch=x86
Host_os=linux
Host_os_extra=linux-3.13.0-24-generic-x86_64-with-ubuntu-14.04-trusty
Host_build_type=release
build_id=ktu84q
Out_dir=out
============================================
make:entering directory '/home/fulinux/rk3288-4.4.x '
Target Java:framework-base (out/target/common/obj/java_libraries/framework-base_intermediates/classes)
Javac:target Release 1.5 conflicts with default source release 1.7
Make : * * * [Out/target/common/obj/java_libraries/framework-base_intermediates/classes-full-debug.jar] Error 41

make:leaving directory '/home/fulinux/rk3288-4.4.x '


Method:

It turns out that I used the openjdk and replaced it with a sun jdk. Follow these methods to install:

Http://www.cnblogs.com/hitwtx/archive/2011/12/06/2277830.html


The contents of my build.sh file are as follows:

#!/bin/bash


Export java_home=/usr/lib/jvm/jdk1.6.0_45
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib: $JAVA _home/lib/tools.jar


. build/envsetup.sh


SOURCE build.sh file.

Javac:target release 1.5 conflicts with default source release 1.7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.