Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

µ÷ÓÃGoogle API µÄJavaʵÏÖ£¨Web service£©


Web ServiceµÄ·Ï»°¾Í²»ËµÁË¡£¾Í˵ÔõôʹÓðɡ£
1.ÐèÒªjava»·¾³ µ½http:.//java.sun.com/J2SE  ¿ÉÒÔÏÂÔØ Java Development Kit
2.ÐèÒªGoogle APIµÄJarÎļþ£¬Googleapi.jar¡£¿ÉÒÔµ½http://www.google.com/apisÏÂÔØ¡£Ìî¼Ó½øCLASSPATH.
3.ÉêÇëGoogle·ÃÎÊÕʺţ¬Ä¿Ç°GoogleÖ§³ÖÃâ·ÑÉêÇëµÄ·½Ê½£¬Óû§ÐèҪʹÓÃÒ»¸öemailÕʺÅÀ´»ñÈ¡ÐÂÕʺš£×¢Ò⣬ĿǰÃâ·ÑÕʺÅÖ§³ÖÿÌì1000ÌõµÄ×î´ó²éѯÁ¿¡£ÉêÇëµØÖ·£ºhttp://www.google.com/apis¡£
   ÉêÇëÒÔºóÈ¥ÓÊÏäÀïÆôÓÃÄãµÄÕÊ»§£¬È»ºó»áÓÐÁíÒ»·âemail·¢µ½ÓÊÏäÀï¡£µÃµ½ÄãµÄlicense key ¡£
SOAPÇëÇóµÄ¸ñʽ¾Í²»ËµÁË£¬googleÖ±½ÓÌṩÁËapi.±ðÀË·ÑÁËGoogleapi.jarŶ.
4.ÒÔÏÂÊÇÀý×Ó
package daxigua;
import com.google.soap.search.*;
import java.io.*;
public class GoogleAPITest {
    public static void main(String[] args) {
        String clientKey = "clientKey";//¸Õ²ÅµÃµ½µÄlicense key ,²»ÊÇÕÊ»§ÃûŶ
        String query = "csdn";
        GoogleSearch s = new GoogleSearch();
        s.setKey(clientKey);
        try {
            s.setQueryString(query);
            s.setLanguageRestricts("lang_cn");
            GoogleSearchResult r = s.doSearch();
            System.out.println("Google Search Results:" + r.toString());
            FileWriter fw = new FileWriter("result.txt");
            fw.write(r.toString());
            fw.close();
        } catch (GoogleSearchFault f) {
            System.ou


Ïà¹ØÎĵµ£º

java ÄÚ´æÕ¼ÓÃ1

±¾ÎÄÊôÓÚתÔØ£¬ÔÚ±¾ÏµÁеĵڶþ²¿·Ö»áÌÖÂÛ¸ü¼Ó¸´ÔÓµÄÇé¿ö¡£
ÏÂÃæµÄÂÛÊöÕë¶Ô32λϵͳ£¬¶Ô64λϵͳ²»ÊÊÓ㬺óÐð¾­³£ÄãдÁËÒ»¸ö³ÌÐò£¬Ò»²âÊÔ£¬¹¦ÄÜûÎÊÌ⣬һ¿´ÄÚ´æÕ¼ÓÃÒ²²»¶à£¬¾Í²»È¥¿¼ÂÇÆäËüµÄ¶«Î÷ÁË¡£µ«¿ÉÄܳÌÐòʹÓÃÁËÒ»¸öʲôÊý¾Ý½á¹¹£¬»áµ±Êý¾Ý¹æÄ£±ä´óʱ£¬ÄÚ´æÕ¼Óü¤Ôö¡£
»ù±¾&&¹Ø¼üµÄÎÊÌâÊÇ£¬JavaÀï¸÷ÖÖ¶«¶«Õ ......

Java¾ø¶ÔºÃÎÄ

1£® ¹ØÓÚ¶¯Ì¬¼ÓÔØ»úÖÆ??
ѧϰJava±ÈC++¸üÈÝÒ×Àí½âOOPµÄ˼Ï룬±Ï¾¹C++»¹»ìºÏÁ˲»ÉÙÃæÏò¹ý³ÌµÄ³É·Ö¡£ºÜ¶àÈ˶¼Äܱ³³öÀ´JavaÓïÑÔµÄÌص㣬ËùνµÄ¶¯Ì¬¼ÓÔØ»úÖƵȵȡ£µ±È»¸ÅÄîÍùÍùÊÇÏȼÇס¶øºóÏû»¯µÄ£¬¿ÉÓжàÉÙÈËÕæÕýÈ¥Ìå»á¹ý¶¯Ì¬¼ÓÔصĻúÖÆ£¬ÊÔͼȥѰÕÒ¹ýÆäÖеÄϸ½ÚÄØ? Ìṩ´ó¼ÒÒ»¸ö·½·¨£º
ÔÚÃüÁîÐд°¿ÚÔËÐÐJava³ÌÐòµÄʱºò£¬¼ ......

Java Ö®Á¬½ÓÊý¾Ý¿â£¨×ܽᣩ


-------------------------------oracle--------------------------------
Çý¶¯£ºoracle.jdbc.driver.OracleDriver
URL£ºjdbc:oracle:thin:@<machine_name><:port>:dbname
×¢£ºmachine_name£ºÊý¾Ý¿âËùÔڵĻúÆ÷µÄÃû³Æ£»
      port£º¶Ë¿ÚºÅ£¬Ä¬ÈÏÊÇ1521
   &nbs ......

matlab java.lang.OutOfMemoryError: Java heap space

À´×Ôhttp://www.ilovematlab.cn/thread-30836-1-1.html
matlab java.lang.OutOfMemoryError
JavaÐéÄâ»úÄÚ´æ²»¹»ÓÃÁË.¿ÉÒÔÔö¼Ó×î´óÄÚ´æÉèÖÃ.
1. ²éÕÒmatlab¸ù·¾¶.ÔÚmatlabÃüÁîÐÐÖÐÇÃÈë:matlabroot
ÏÔʾ¸ù·¾¶,Èç:C:\MATLAB7
2.²é¿´µ±Ç°JavaÐéÄâ»ú×î´ó¶ÑÄÚ´æ, ÇÃÈë:java.lang.Runtime.getRuntime.maxMemory
3.²é¿ ......

java¿ª·¢»·¾³´î½¨ д¸øjavaÐÂÊÖ

Ò»¡¢windowsÏ¿ª·¢»·¾³µÄ´î½¨
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØwindowsƽ̨µÄJDK,²¢°²×°¡£¼ÙÉ谲װĿ¼Ϊ£ºC:\jdk6.0
2¡¢É趨Ïà¹Ø»·¾³Á¿£¨ÒÔwindowsXP)Àý£º
       1¡¢ÓÒ»÷×ÀÃæÉÏ“ÎҵĵçÄÔ”£¬Ñ¡ÔñÊôÐÔ
       2¡¢ÔÙÑ¡Ôñ“¸ß¼¶”»îÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ