• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

errors in building Andriod2.2 on fedora 14 && asking for help

Vanlos

Lurker
Nov 22, 2010
1
0
Hello!
I build the Andriod2.2 source code on fedora 14 . There is an error which is caused by missing libs . I follow these steps :

1.install jdk-1_5_0_22-linux-i586 , download jdk-1_5_0_22-linux-i586-rpm.bin in /root/JDK5Updata22/ ,run ./jdk-1_5_0_22-linux-i586-rpm.bin in terminal . then

[root@VanlOS ~]# vim ~/.bash_profile

and add

#java5.0Updata22
export JAVA_HOME=/usr/java/jdk1.6.0_22
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$PATH:$JAVA_HOME/bin

at the last line.

[root@VanlOS ~]# source ~/.bash_profile
[root@VanlOS mydriod]# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.1) (fedora-44.1.9.1.fc14-i386)
OpenJDK Server VM (build 19.0-b06, mixed mode)

Here how can I export the path of jdk1.6.0_22?

[root@VanlOS mydriod]# vim /etc/profile

then add the same code of ~/.bash_profile

[root@VanlOS mydriod]# source /etc/profile
[root@VanlOS mydriod]# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.1) (fedora-44.1.9.1.fc14-i386)
OpenJDK Server VM (build 19.0-b06, mixed mode)

but it doesn't work .

2.
[root@VanlOS ~]# cd ~/mydriod/
[root@VanlOS mydriod]# make
.............................................
build/tools/droiddoc/src/TypeInfo.java:65: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<java.lang.String>
return fullName(new HashSet());
^
build/tools/droiddoc/src/TypeInfo.java:221: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<java.lang.String>
return typeVariables(params, new HashSet());
^
build/tools/droiddoc/src/Converter.java:692: warning: [unchecked] unchecked conversion
found : java.util.HashMap
required: java.util.HashMap<com.sun.javadoc.AnnotationValue,AnnotationValueInfo>
private static HashMap<AnnotationValue,AnnotationValueInfo> mAnnotationValues = new HashMap();
^
build/tools/droiddoc/src/Converter.java:693: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<com.sun.javadoc.AnnotationValue>
private static HashSet<AnnotationValue> mAnnotationValuesNeedingInit = new HashSet();
^
build/tools/droiddoc/src/Converter.java:746: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<com.sun.javadoc.AnnotationValue>
mAnnotationValuesNeedingInit = new HashSet();
^
build/tools/droiddoc/src/DroidDoc.java:181: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<java.lang.String>
stubPackages = new HashSet();
^
build/tools/droiddoc/src/DroidDoc.java:709: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<PackageInfo>
ArrayList<PackageInfo> result = new ArrayList();
^
build/tools/droiddoc/src/NavTree.java:24: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<NavTree.Node>
ArrayList<Node> children = new ArrayList();
^
build/tools/droiddoc/src/NavTree.java:47: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<NavTree.Node>
ArrayList<Node> children = new ArrayList();
^
build/tools/droiddoc/src/NavTree.java:61: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<NavTree.Node>
ArrayList<Node> children = new ArrayList();
^
build/tools/droiddoc/src/Stubs.java:33: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<ClassInfo>
notStrippable = new HashSet();
^
build/tools/droiddoc/src/Stubs.java:362: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<java.lang.String>
HashSet<String> classDeclTypeVars = new HashSet();
^
build/tools/droiddoc/src/Stubs.java:550: warning: [unchecked] unchecked conversion
found : java.util.HashSet
required: java.util.HashSet<java.lang.String>
stream.print(method.typeArgumentsName(new HashSet()) + " ");
^
13 warnings
Install: out/host/linux-x86/framework/droiddoc.jar
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
external/clearsilver/java-jni/j_neo_util.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
external/clearsilver/java-jni/j_neo_util.c: In function
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones