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

ÒÔjava±à³Ì·½Ê½µ÷Óà Apache Ant

 
±¾ÎÄÑÝʾÁËÈçºÎͨ¹ý Java µ÷Óà Apache Ant ¹¹½¨Îļþ¡£Äú½«¼ì²é±ØÒªµÄ Java ´úÂë²¢Á˽âÈçºÎÔÚ WebSphere Application Developer ÖÐÔËÐд˴úÂë¡£
ÒýÑÔ
Apache
Ant ÊÇÒ»¸ö»ùÓÚ Java µÄ¿ª·ÅÔ´´úÂë¹¹½¨ÊµÓù¤¾ß¡£ÈËÃdz£°ÑËüÓë Make ½øÐбȽϣ¬Make
³¤ÆÚÒÔÀ´Ò»Ö±ÓÃÓÚ°ïÖú×Ô¶¯Íê³É¹¹½¨¹ý³Ì¡£¾­¹ý²»Í¬°æ±¾µÄ¸Ä½ø£¬Ant ÒÑ·¢Õ¹³ÉÒ»¸ö·á¸»µÄ¹¦Äܿ⣬ʹÆä³ÉΪÊÊÓÃÓÚÐí¶à³¡ºÏµÄºÏÊʹ¤¾ß¡£ÀýÈ磬Ant
µÄµ±Ç°°æ±¾ (V1.6.2) ÌṩµÄһЩÈÎÎñ°üÀ¨Á˲Ù×÷ÎļþÄÚÈÝ¡¢Ö´ÐÐÃüÁîÐÐºÍ Java ³ÌÐòÒÔ¼°Æô¶¯ SSH ºÍ FTP Á¬½ÓµÄ¹¦ÄÜ¡£
ÓÉ
ÓÚ¶¨ÒåËùÓй¹½¨Âß¼­µÄ Ant ¹¹½¨Îļþ¶¼ÊÇÓà XML
±àдµÄ£¬Òò´Ë£¬Èç¹ûÐèÒª¸ü¸ÄÂß¼­£¬Ôò²»ÐèÒªÖØбàÒë´úÂ룬Ҳ²»ÐèÒªÁ˽âÓïÑÔÌض¨µÄÓï·¨¡£´ËÍ⣬Ant ¾ßÓи߶ȵĿÉÀ©Õ¹ÐÔ¡£ËüÌṩÁËʹÓà Java™
´´½¨Äú×Ô¼ºµÄ×Ô¶¨ÒåÈÎÎñµÄ¹¦ÄÜ£¬Ö®ºóÓÖ¿ÉÒÔͨ¹ýÓëʹÓÃÈκÎÆäËû Ant ÈÎÎñÏàͬµÄ·½Ê½Ê¹Óà Java™¡£ËùÓÐÕâЩÁªÏµÔÚÒ»ÆðÒâζ×Å Ant
ÊÇ¿ÉÒÔÖ´ÐкܶàÈÎÎñµÄ¼«ºÃÑ¡Ôñ¡£
ÔÚ´ó¶àÊýÇé¿öÏ£¬Ò»µ©´´½¨ºÃ¹¹½¨Îļþ£¬¾Í¿ÉÒÔ´Ó´øÓÐÊʵ±Ä¿±ê£¨ÀýÈ磬ant dist
£©µÄÃüÁîÐе÷Óà Ant ¿ÉÖ´ÐÐÎļþÀ´Ö´ÐÐËüÃÇ£¬Ò²¿ÉÒÔʹÓà WebSphere® Studio Application Developer (Application Developer) ÄÚÖà Run Ant
ÃüÁîÀ´Ö´ÐÐËüÃÇ¡£È»¶ø£¬Ò²´æÔÚ¸üÊʺÏÓÚ´Ó Java ³ÌÐòÖÐÆô¶¯ Ant µÄÇé¿ö¡£Õâ¿ÉÄÜÒª¸ù¾Ý Java
³ÌÐò¼ì²âµ½µÄij×éÌõ¼þÀ´¿ªÊ¼Ò»ÏµÁеIJÙ×÷£¬»òÕߣ¬ËüÖ»ÊÇÀûÓóÌÐòÄڷḻµÄ Ant
ÄÚÖù¦ÄÜ¡£ÔÚÕâÖÖÇé¿öÏ£¬ÄúÐèÒª¼ÌÐø´´½¨Ò»¸ö¹¹½¨Îļþ£¬¾ÍÏñ´ÓÃüÁîÐе÷Óà Ant ʱÄÇÑù£¬µ«Ö®ºóÄúÐèÒª½«¶Ô Ant Java API
µÄÕýÈ·µ÷ÓòåÈëµ½³ÌÐòÖС£±¾ÎĽ«Í¨¹ý¼ì²é±ØÒªµÄ Java ´úÂë²¢ÏòÄúչʾÈçºÎÔÚ Application Developer
ÄÚÔËÐд˴úÂëÀ´°ïÖúÄú´¦Àí´Ë¹ý³Ì¡£
±¾ÎÄÖ»°üÀ¨Ê¹Óù¹½¨Îļþ´Ó Java Öе÷Óà Ant ÈÎÎñµÄÇé¿ö¡£Óйش˹ý³ÌµÄ¸ü¶àÐÅÏ¢£¬Çë²ÎÔÄ¡¶Apache Ant Óû§ÊֲᡷÖÐµÄ Using Ant Tasks Outside of Ant
¡£
»ØÒ³Ê×
ÒÔ±à³Ì·½Ê½µ÷Óà Ant
±¾ÎÄÖеÄʾÀýʹÓà WebSphere Studio Application Developer 5.1.2¡£ÕâЩʾÀý¿ÉÄÜÒ²ÊÊÓÃÓÚÆäËû°æ±¾£¬µ«ÉÐδ¾­¹ý²âÊÔ¡£Äú¿ÉÒÔÏÂÔØ
Ãâ·ÑÊÔÓð汾¡£
´Ó Application Developer Öд´½¨ Ant ¹¹½¨Îļþ
ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«¼òÒªµØ»Ø¹Ë¹¹½¨ÎļþµÄ´´½¨ÒÔ¼°ÆäËû Ant »ù´¡ÖªÊ¶£¬µ«²¢²»ÏêϸÌÖÂÛ¡£ÓйØÏêϸÐÅÏ¢£¬Çë²ÎÔÄÏà¹ØÄÚÈݺͲο¼×ÊÁÏ
²¿·Ö¡£
Ê×ÏÈ£¬´´½¨Ò»¸öÐ嵀 Java ÏîÄ¿¡£×ªµ½ File => New => Project
¡£Ñ¡Ôñ Java => Ja


Ïà¹ØÎĵµ£º

Effective Java¶ÁÊé±Ê¼Ç

package chape8;
import java.math.BigDecimal;
/**
* 8-48
* Èç¹ûÏëÒªÖªµÀ¾«È·µÄ´ð°¸£¬¾ÍÒª±ÜÃâʹÓÃdoubleºÍfloat
¶ÔÓÚ½ðÈÚÐÐÒµÀ´Ëµ£¬¶ÔÊý¾ÝµÄÑÏÕûÐÔÒªÇóÊǺܸߵģ¬²»ÈÝ°ëµãÂí»¢£¬
ÄÇ´ó¼Ò¶¼ÖªµÀÔÙÎÒÃǵÄJavaÓïÑÔÀïÃæÓÐÁ½¸ö¸¡µãÊýÀàÐ͵ıäÁ¿floatºÍdouble£¬
¿ÉÄÜ´ó¼Ò»áÈÏΪËûÃǵľ«¶È¶ÔÓÚ½ðÈÚÐÐÒµÕâÑù¶ÔÊý×Öà ......

java stringÀàÏê½â

Java×Ö·û´®Àà(java.lang.String)ÊÇJavaÖÐʹÓÃ×î¶àµÄÀ࣬ҲÊÇ×îΪÌØÊâµÄÒ»¸öÀ࣬ºÜ¶àʱºò£¬ÎÒÃǶÔËü¼ÈÊìϤÓÖÄ°Éú¡£
 
Ò»¡¢´Ó¸ù±¾ÉÏÈÏʶjava.lang.StringÀàºÍString³Ø
 
Ê×ÏÈ£¬ÎÒ½¨ÒéÏÈ¿´¿´StringÀàµÄÔ´ÂëʵÏÖ£¬ÕâÊÇ´Ó±¾ÖÊÉÏÈÏʶStringÀàµÄ¸ù±¾³ö·¢µã¡£´ÓÖпÉÒÔ¿´µ½£º
1¡¢StringÀàÊÇfinalµÄ£¬²»¿É±»¼Ì³Ð¡£publ ......

Java¶ÁдtxtÎļþ

 ±ÊÊÔµÄʱºòÏë²»ÆðÀ´ÔõôдÁË¡£Áô¸ö´úÂë×÷¼ÍÄî
package common;
import java.io.*;
import java.util.ArrayList;
public class IOTest {
public static void main (String args[]) {

ReadDate();

WriteDate();

}

/**
* ¶ÁÈ¡Êý¾Ý
*/
public static void ReadDate() {
......

Java BeanÔ­ÀíÓëÓ¦ÓÃ

   ¡¡¡¡1¡¢Ê²Ã´ÊÇJavaBean£¿  
   
  ¡¡¡¡JavaBeanÊÇÃèÊöJavaµÄÈí¼þ×é¼þÄ£ÐÍ£¬ÓеãÀàËÆÓÚMicrosoftµÄCOM×é¼þ¸ÅÄî¡£ÔÚJavaÄ£ÐÍÖУ¬Í¨¹ýJavaBean¿ÉÒÔÎÞÏÞÀ©³äJava³ÌÐòµÄ¹¦ÄÜ£¬Í¨¹ýJavaBeanµÄ×éºÏ¿ÉÒÔ¿ìËÙµÄÉú³ÉеÄÓ¦ÓóÌÐò¡£¶ÔÓÚ³ÌÐòÔ±À´Ëµ£¬×îºÃµÄÒ»µã¾ÍÊÇJavaBean¿ÉÒÔʵÏÖ´úÂëµÄÖظ´ÀûÓ ......

javaÉú³ÉÑéÖ¤ÂëͼƬ£¨¸½£ºÑéÖ¤Âë½éÉÜ£©

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.util.Random;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
/**
  *  ¹¦ÄÜÃèÊö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ