Ãâ·ÑµÄjavaÐéÄâÖ÷»ú¿Õ¼ä googleµÄapp engine
Ä¿Ç°ÒªÕÒ¸öÃâ·ÑµÄjava¿Õ¼ä²»ÈÝÒ×°¡£¬´ó²¿·Ö¶¼ÊÇphp aspµÄ£¬ÍƼö´ó¼ÒÒ»¸ö·Ç³£°ôµÄÃâ·Ñjava·þÎñÆ÷£¬googleµÄappengine »¹ÄÜÃâ·Ñ´´½¨ÓòÃû¡£±ÈÈçÎÒµÄwoyaopipi, ºó׺×Ô¶¯±ä³Éwoyaopipi.appspot.com£¬Õâ¸öƽ̨ºÃ´¦¾ÍÊÇgoogleµÄ·þÎñÆ÷£¬ÐÔÄÜ¿ÉÏë¶øÖª£¬»¹ÌṩÁËmemcacheÄڴ滺´æ£¬³Ö¾Ã»¯Êý¾Ý¿âÖ»ÐèÒª½«java bean persistenһϾÍok ²»Óý¨±íÖ®ÀàµÄ¡£»¹ÓÐÓʼþµÄ¹¤¾ßºÍͼÏñ´¦Àí¹¤¾ß£¬
ÏÂÃæÊǹٷ½ËµÃ÷£º
Google App Engine ¿ÉÈÃÄúÔÚ Google µÄ»ù´¡¼Ü¹¹ÉÏÔËÐÐÄúµÄÍøÂçÓ¦ÓóÌÐò¡£App Engine Ó¦ÓóÌÐòÒ×ÓÚ¹¹½¨ºÍά»¤£¬²¢¿É¸ù¾ÝÄúµÄ·ÃÎÊÁ¿ºÍÊý¾Ý´æ´¢ÐèÒªµÄÔö³¤ÇáËÉÀ©Õ¹¡£Ê¹Óà Google App Engine£¬½«²»ÔÙÐèҪά»¤·þÎñÆ÷£ºÄúÖ»ÐèÉÏ´«ÄúµÄÓ¦ÓóÌÐò£¬Ëü±ã¿ÉÁ¢¼´ÎªÄúµÄÓû§Ìṩ·þÎñ¡£
Äú¿ÉÒÔʹÓà Google ÆóÒµÓ¦ÓÃÌ×¼þͨ¹ý×Ô¼ºµÄÓòÃû£¨ÀýÈç http://www.example.com/£©ÌṩӦÓóÌÐò¡£»òÕߣ¬Äú¿ÉÒÔʹÓà appspot.com ÓòÉϵÄÃâ·ÑÓòÃûÀ´ÎªÄúµÄÓ¦ÓóÌÐòÌṩ·þÎñ¡£Äú¿ÉÒÔÓëÈ«ÊÀ½çµÄÈ˹²ÏíÄúµÄÓ¦ÓóÌÐò£¬Ò²¿ÉÒÔÏÞÖÆΪֻÓйó×éÖ¯µÄ³ÉÔ±¿ÉÒÔ·ÃÎÊ¡£
Google App Engine Ö§³ÖÒÔ¼¸ÖÖ±à³ÌÓïÑÔ±àдµÄÓ¦ÓóÌÐò¡£Í¨¹ý App Engine µÄ Java ÔËÐÐʱ»·¾³£¬Äú¿ÉÒÔʹÓñê×¼ Java ¼¼Êõ£¨°üÀ¨ JVM¡¢Java servlet ºÍ Java ±à³ÌÓïÑÔ£¬»òʹÓûùÓÚ JVM µÄ½âÊÍÆ÷»ò½âÒëÆ÷µÄÈκÎÆäËûÓïÑÔ£¬ÀýÈç JavaScript »ò Ruby£©¹¹½¨Ó¦ÓóÌÐò¡£App Engine »¹Ìṩһ¸öרÓÃµÄ Python ÔËÐÐʱ»·¾³£¬¸Ã»·¾³°üÀ¨Ò»¸ö¿ìËÙ Python ½âÊÍÆ÷ºÍ Python ±ê×¼¿â¡£Java ºÍ Python ÔËÐÐʱ»·¾³¹¹½¨ÎªÈ·±£Ó¦ÓóÌÐò¿ìËÙ¡¢°²È«ÔËÐУ¬²¢²»ÊÜϵͳÉϵÄÆäËûÓ¦ÓóÌÐòµÄ¸ÉÈÅ¡£
ÔÚ App Engine ÖУ¬ÄúÖ»ÐèΪÄúʹÓõÄ×ÊÔ´¸¶·Ñ¡£Ã»ÓÐÉèÖóɱ¾£¬Ò²Ã»ÓÐÖظ´µÄ·ÑÓá£ÄúµÄÓ¦ÓóÌÐòʹÓõÄ×ÊÔ´£¬Èç´æ´¢¿Õ¼äºÍ´ø¿íÒÔǧÕ××Ö½ÚºâÁ¿£¬²¢ÒÔÓоºÕùÁ¦µÄ·ÑÂÊÊÕ·Ñ¡£Äú¿ÉÒÔ¿ØÖÆÄúµÄÓ¦ÓóÌÐò¿ÉÒÔÏû·ÑµÄ×î´ó×ÊÔ´Á¿£¬Ê¹ÆäÒ»Ö±±£³ÖÔÚÔ¤Ë㷶ΧÄÚ¡£
¿ÉÒÔÃâ·Ñ¿ªÊ¼Ê¹Óà App Engine¡£ËùÓÐÓ¦ÓóÌÐò¶¼¿ÉÒÔʹÓöà´ï 500 MB µÄ´æ´¢¿Õ¼ä£¬ÒÔ¼°¿ÉÖ§³ÖÿÔÂÔ¼ 500 ÍòÒ³Ãæä¯ÀÀÁ¿µÄ×ã¹»µÄ CPU ºÍ´ø¿í£¬ÍêÈ«Ãâ·Ñ¡£ÎªÄúµÄÓ¦ÓóÌÐòÆôÓø¶·Ñºó£¬ÄúµÄÃâ·ÑÅä¶î½«Ìá¸ß£¬ÄúÖ»ÐèΪʹÓõij¬¹ýÃâ·ÑˮƽµÄ×ÊÔ´¸¶·Ñ¡£
ҪʹÓÃÕâ¸ö¶«Î÷£¬ÒªÏÂÔظöswtµÄsdk£¬ºÜ¼òµ¥£¬ÔÚeclipseÉϵÄupdate site¼Ó¸öµØÖ·¾Í¿ÉÒÔÁË£¬¾ßÌå¼ûÏÂÃæµØÖ·£¬°²×°²½ÖèÓÐÏêϸ˵Ã÷¡£
Ïë¸öÈËѧϰµÄ£¬»òÕßÊǽ¨¸ö³õ¼¶ÍøÕ¾µÄͬ־ÃÇ¿ÉÒÔÀ´ÍæÍ棬Õâ¿ÉÊǺö«Î÷Ŷ£¬Ö§³Öjava jsp µÈ¡£ÊֲḽÉÏ£º
http://code.google.com/intl/zh-CN/
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
String startTime, String endTime;
Date start = null;
Date end = null;
Date startTimeStamp = null;
Date endTimeStamp = null;
try {
SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
......
JAVA¿ª·¢°ü¹¦Äܼò½é
TerrySMS for Java ÊÇÓÃJAVA¿ØÖÆGSM ModemʵÏÖ¶ÌÐÅÊÕ·¢¹¦ÄܵĿª·¢°ü¡£ÀûÓÃTerrySMS¿ÉÒÔʵÏÖ¿çƽ̨µÄ¶ÌÐÅ·¢ËÍ£¬Ä¿Ç°Ö§³ÖwindowsXP¡¢2000¡¢2003¡¢LinuxµÈ²Ù×÷ϵͳ¡£ÊÇʵÏÖÒµÎñϵͳºÍ¶ÌÐÅϵͳ¼Þ½ÓµÄÀíÏ빤¾ß¡£
JAVA¿ª·¢°ü¹¦ÄܽéÉÜ
1¡¢Ä¿Ç°Ö ......
µÚÒ»ÖÖ ×ÔÉíÀà×÷Ϊʼþ¼àÌýÆ÷
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
*Javaʼþ´¦Àí»úÖÆ:×ÔÉíÀà×÷Ϊʼþ¼àÌýÆ÷
*@author Winty(wintys@gmail.com)
*@version 2008-12-3
*/
class ThisClassEvent extends JFrame implements ActionListener{
JButton btn;
public ......
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import au.com.bytecode.opencsv.CSVWriter;
public class CsvDemo {
public static void main(String[] args) throws IOException {
  ......