码迷,mamicode.com
首页 > 编程语言 > 详细

javac: target release 1.5 conflicts with default source release 1.7

时间:2015-04-30 16:18:29      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:javac target release   1.5 conflicts with d   efault source releas   1.7   

问题:

[fulinux@ubuntu 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‘


方法:

原来是因为我使用了openjdk,换成sun jdk就可以了。按照下面的方法安装:

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


我的build.sh文件内容如下:

#!/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文件即可。

javac: target release 1.5 conflicts with default source release 1.7

标签:javac target release   1.5 conflicts with d   efault source releas   1.7   

原文地址:http://blog.csdn.net/fulinus/article/details/45394621

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!