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

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

Ò»¡¢windowsÏ¿ª·¢»·¾³µÄ´î½¨
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØwindowsƽ̨µÄJDK,²¢°²×°¡£¼ÙÉ谲װĿ¼Ϊ£ºC:\jdk6.0
2¡¢É趨Ïà¹Ø»·¾³Á¿£¨ÒÔwindowsXP)Àý£º
       1¡¢ÓÒ»÷×ÀÃæÉÏ“ÎҵĵçÄÔ”£¬Ñ¡ÔñÊôÐÔ
       2¡¢ÔÙÑ¡Ôñ“¸ß¼¶”»îÒ³£¬ÕÒµ½ÏµÍ³±äÁ¿£¬²¢µã»÷ÏÂÃæµÄ“н¨”
       3¡¢±äÁ¿Ãû£ºJAVA_HOME   £¬Öµ£ºC:\jdk6.0(ÄãµÄJDK°²×°Ä¿Â¼£©£¬µã»÷“È·¶¨”
       4¡¢ÒÔͬÑùµÄ·½·¨Ð½¨£¬±äÁ¿Ãû£ºCLASSPATH     £¬Öµ£º %JAVA_HOME%\lib;.
             ×¢Ò⣬ºóÃæÊÇ·ÖºÅÓëµãºÅ£¨Ó¢Îĵģ©£¬²»ÄÜ´í
       5¡¢ÔÚϵͳ±äÁ¿ÖÐÕÒµ½“path”£¬²¢µã»÷“Ð޸Ĕ£¬ÔÚÆä¶ÔÓ¦µÄÖµµÄ×îºóÃæ×·¼Ó“;%JAVA_HOME%\bin”£¬ÒýºÅ²»ÔÚÄÚ,Ò»Ö±µã“È·¶¨”Ö±µ½ËùÓеĴ°¿Ú¹Ø±Õ
        6¡¢´ò¿ª“ÔËÐД´°¿Ú£¬ÊäÈë“cmd”»Ø³µ£¬ÔÚ³öÏÖµÄÌáʾ·û´°¿ÚÏÂÊäÈ룺“javac -version”²¢»Ø³µ£¬³öÏÖ“javac 1.6.0”µÈÀàËƵÄÐÅÏ¢£¬Ôò´ó¹¦¸æ³ÉÒ²¡£
  7¡¢°²×°ÄãµÄ¿ª·¢IDE£¬ÈçEclipse¡¢JBuilderµÈ£¬¾Í²»¶à˵ÁË
¶þ¡¢linuxÏ¿ª·¢»·¾³µÄ´î½¨(ÒÔUbuntuΪÀý£©
         1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØlinuxƽ̨µÄJDK,µÄbinµµ;
          2¡¢½«ÄãÏÂÔصÄbinµµ·ÅÔÚÄãÏë°²×°µÄĿ¼£¬Èç/optÏÂÃ棬ÏÂÃæ¼ÙÉè·ÅÔÚ/optĿ¼ÏÂ,ÎļþÃûΪjdk1.6.0.bin
          3¡¢´ò¿ªÖնˣ¬ÒÀ´ÎÖ´ÐÐÏÂÁÐÃüÁ
               cd /opt
               sudo sh jdk1.6.0.bin   (ÆäËüƽ̨²»ÐèÒªsudo£¬Ö»ÒªÏàÓ¦µÄȨÏ޾ͿÉÒÔ£©
             jdk°²×°Íê³É£¬°²×°Ä¿Â¼Îª£º/opt/jdk1.6.0
   &


Ïà¹ØÎĵµ£º

java ÄÚ´æÕ¼ÓÃ1

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

JavaÈÕÆÚ ¼ÆËã

JavaÖÐÌṩÁ˷ḻµÄÈÕÆÚ±íʾ·½Ê½¡£ÆäÖаüÀ¨Date¡¢Timestamp¡¢Calendar¡¢GregorianCalendarÀà¡£GregorianCalendarÀàÖÐÌṩÁËÓÃÓÚ¼ÆËãÈÕÆÚµÄadd()·½·¨£¬¿ÉÒԺܷ½±ãµØ¼ÆËãÈô¸ÉÄê¡¢Ô¡¢ÈÕºóµÄÈÕÆÚ¡£

¸ø¸öÀý×Ó¿´¿´£º


package testjava;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import ......

JAVAÖеÄÈÕÆÚ¼ÆËã

һЩÎÞÁĵĴúÂëÖ®Ò»£ºJAVAÖеÄÈÕÆÚ¼ÆËã
/*
* DateCalculate.java , Created on 2005-3-18
* Copyright 2005 AAA Information Technology CO.LTD. All rights reserved.
*
* ×÷³ÉÈÕÆÚ: 2005-3-18
* ÐÞ¸ÄÂÄÀú:
*
*/
package com.bjb.xyh.util;
import java.text.DecimalFormat;
//import java.text.Pars ......

JAVAÁ¬½Ósql server 2005 Êý¾Ý¿âÐĵÃ

Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2
½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\Program Files£©¡£
ÉèÖÃ Classpath
JDBC Çý¶¯³ÌÐò²¢Î´°üº¬ÔÚ Java SDK ÖС£Òò´Ë£¬Èç¹ûҪʹÓøÃÇý¶¯³ÌÐò£¬±ØÐ뽫 classpath ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ