Java³ÌÐòÁ¬½ÓDB2
1¡¢°ÑDB2°²×°Ä¿Â¼ÏµÄdb2java.zipµ¼Èëµ½ÏîÄ¿µÄÍⲿÀ࣬ÈçÎÒÊǰÑD:\Program Files\IBM\SQLLIB\javaϵÄdb2java.zipµ¼ÈëµÄ¡£
2¡¢ÔÚ³ÌÐòÖн¨Á¢Á¬½Ó£º
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
String url="jdbc:db2:mydb"; //²»±ØÖ¸¶¨Ö÷»úÃûºÍ¶Ë¿ÚºÅ£¬Ö¸¶¨ÁË·´¶ø»á³ö´í
String user="*****";
String password="******";
conn=DriverManager.getConnection(url,user,password);
3¡¢½ÓÏÂÈ¥±ã¿ÉÒÔÖ±½Ó½øÐвéѯÁË£º
st=(Statement) conn.createStatement();
rs=st.executeQuery(query);
Ïà¹ØÎĵµ£º
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>¹þÀï²¨Ì ......
¹«Ë¾Vac·½·¨¹ýÂËÆ÷ʹÓõ½·´Éä»úÖÆ£¬¶ÁÈ¡xmlÅäÖÃÎļþ¹ýÂËÓû§·ÃÎʵķ½·¨ÃûÊÇ·ñºÏ·¨¡£
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRe ......
±¾ÎÄת×Ô£ºhttp://hi.baidu.com/%E6%AD%A3%E9%81%93%E6%B0%94%E5%8A%9F/blog/item/70a90e01e69516e708fa93c6.html
ÓÉÓÚ±¾ÈËÔÚ×ö MOTO ÊÖ»úÉϵÄÒ»¿îÔĶÁÆ÷
Anyview ʱ£¬²¢²»ÂúÒâÊÖ»ú×Ô´øµÄ×ֿ⣬Òò´Ë£¬Ê¹ÓÃÁËÍâ¹Ò×ֿ⣬ÔÚ±àÂë¹ý³ÌÖУ¬×ܽáÁËһЩ¾Ñé£¬ÌØ¼Ç¼ÏÂÀ´Óë´ó¼Ò·ÖÏí¡£ËäÈ»ÔĶÁÆ÷ÊÇʹÓà J2ME
¿ª·¢£¬µ«Æä»ù±¾ÔÀíÊ ......
µÃÀ²£¬Ç°ÃæÄǸöÃÕÌâÊÇÓе㼬ÊÖ£¬µ«ËüÊÇÓйØÕû³ýµÄ£¬Ã¿¸öÈ˶¼ÖªµÀÕû³ýÊǺÜÂé·³µÄ¡£ÄÇôÏÂÃæµÄ³ÌÐòֻɿ¼°¼Ó·¨£¬ËüÓÖ»á´òÓ¡³öÊ²Ã´ÄØ£¿
public class Elementary{
public static void main(String[] args){
System.out.println(12345+5432l);
}
}
´Ó±íÃæÉÏ¿´£¬ÕâÏñÊÇÒ»¸öºÜ¼òµ¥µÄÃÕÌâ——¼òµ¥µ½²»ÐèÒªÖ½ºÍ ......
ÏÂÃæÊǰ²×°ºÍÅäÖò½Öè
°²×°open-jdk-6£¬sudo apt-get install open-jdk-6£¨²»Öªµ½ÎªÊ²Ã´²»°²×°Õâ¸öÔËÐв»ÁËjavaºÍjavacÃüÁ£¡£¡£©
µ½oracle¹ÙÍøÏÂÔØjdk-6u20-linux-i586.binÎļþ
½«jdk-6u20-linux-i586.bin¸´ÖƵ½/usr/lib/jvm/javaÎļþ¼ÐÏÂ
ÔËÐÐsudo chmod a+x jdk-6u20-linux-i586.bin
ÔËÐÐsudo ./jdk-6u20-li ......