android ±àÒëÎÊÌâ java ºÍ javac °æ±¾²»¶Ô
ÔÚ±àÒëandroid code ³öÏÖ°æ±¾²»¶ÔµÄÎÊÌ⣺
ÃèÊöÈçÏ£º
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_17".
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
ÍøÉÏÓÐÈËÌṩ½â¾ö·½·¨ÈçÏ£¬Ä¿µÄÊÇ°²×°1.5°æ±¾µÄjdk£º
$ sudo apt-get install sun-java5-jdk flex
$ sudo update-java-alternatives -s java-1.5.0-sun
Îҵķ¢ÏֵĽâ¾ö·½·¨ÊÇ£º
±à¼£º ~/mydroid/build/core/main.mk
ÐÞ¸Ä
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.5[\. "$$]')
javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.5[\. "$$]')
Ϊ
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.6[\. "$$]')
javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.6[\. "$$]')
Ïà¹ØÎĵµ£º
Ò»¡¢±³¾°
×î½üÒ»Äê¶àÀ´,ÔÚInternetÉϳöÏÖµÄÌرðÎüÒýÈ˵Äʼþ¾ÍÊÇJavaÓïÑÔºÍÓÃJava±àдµÄä¯ÀÀÆ÷HotJava¡£
1991Äê,SUNMicroSystem¹«Ë¾µÄJameGosling¡¢BillJoeµÈÈË,ΪÔÚµçÊÓ¡¢¿ØÖÆ¿¾Ãæ°üÏäµÈ¼ÒÓÃÏû·ÑÀàµç×Ó²úÆ·ÉϽøÐн»»¥Ê½²Ù×÷¶ø¿ª·¢ÁËÒ»¸öÃûΪOakµÄÈí¼þ(¼´Ò»ÖÖÏðÊ÷µÄÃû×Ö),µ«µ±Ê±²¢Ã»ÓÐÒýÆðÈËÃǵ ......
1¡¢JAVA¶ÁÈ¡Îļþ£¬±ÜÃâÖÐÎÄÂÒÂë¡£
/**
* ¶ÁÈ¡ÎļþÄÚÈÝ
*
* @param filePathAndName
* String Èç c:\\1.txt ¾ø¶Ô·¾¶
* @return boolean
*/
public static String readFile(String filePathAndName) {
String fileContent ......
Èç¹û´Ó·¿´Thinking in java ÕâÊéËãÆð£¬ÄÇÎÒÒѾ¿´Á˲¶àÈý¸öÔÂÁË£¬µ«ÊÇÊÂʵÉÏÕæÕý°Ñ»¨ÔÚ˼¿¼JAVAÎÊÌâÉϵÄʱ¼äËãÏ£¬¿ÉÕæÊÇÈÃ×Ô¼º¶¼Óеã˵²»¹ýÈ¥¡£ÖÖÖÖÀíÓɶ¼³ä³â×ÅÎÒµÄÉñ¾£¬µ«Î޷Ƕ¼ÊÇÀÁ¶èÕßµÄ×ÔÎÒ±£»¤µÄÊֶΣ¬ÎÒ²»µÃ²»¸Ð¿®ÕæµÄÊÇ×Ô¼ºÌ«²»ÉϽøÁË¡£
&nbs ......
ÈçºÎÈ¡µÄJavaÔ´´úÂëÎļþÖÐÎļþÃûºÍÐкţº£©
ÔÚC/C++µÄ³ÌÐò£¬±àÒëÆ÷ÌṩÁËÁ½¸öºêÀ´Ö§³ÖÈ¡µÃÔ´ÎļþÖеÄÐкźÍÎļþÃû£¬ÕâÁ½¸öºêÊÇ__FILE__,__LINE__
Äã¿ÉÒÔÈçϵķ½·¨´òÓ¡ÐкźÍÎļþÃû
²é¿´Ô´´úÂë
´òÓ¡°ïÖú
1 #include <stdio.h>
2 int main()
3 {
4&nbs ......