Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : java

LinuxÏÂJava»·¾³±äÁ¿µÄÉèÖÃ

Èç¹ûÏëÈÃËùÓÐÓû§share:
emacs -nw /etc/profile
È»ºóÔÚδβ¼ÓÈë
#set java environment
set JAVA_HOME=/usr/java/jdk1.5.0_16
set PATH=.:$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
Èç¹û½öµ±Ç°Óû§Ê¹Óãº
°ÑÉÏÃæµÄ¼ÓÈëÓû§Ä¿Â¼ÏµÄ.bash_profile»ò.bash-rc
È»ºóÔËÐÐsource /etc/profileÉúЧ ......

LinuxÏÂJava»·¾³±äÁ¿µÄÉèÖÃ

Èç¹ûÏëÈÃËùÓÐÓû§share:
emacs -nw /etc/profile
È»ºóÔÚδβ¼ÓÈë
#set java environment
set JAVA_HOME=/usr/java/jdk1.5.0_16
set PATH=.:$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
Èç¹û½öµ±Ç°Óû§Ê¹Óãº
°ÑÉÏÃæµÄ¼ÓÈëÓû§Ä¿Â¼ÏµÄ.bash_profile»ò.bash-rc
È»ºóÔËÐÐsource /etc/profileÉúЧ ......

JAVA¶ÌÐŶþ´Î¿ª·¢°ü,JAVA¶ÌÐŶþ´Î¿ª·¢¿Ø¼þ

 JAVA¿ª·¢°ü¹¦Äܼò½é
 
  TerrySMS for Java ÊÇÓÃJAVA¿ØÖÆGSM ModemʵÏÖ¶ÌÐÅÊÕ·¢¹¦ÄܵĿª·¢°ü¡£ÀûÓÃTerrySMS¿ÉÒÔʵÏÖ¿çÆ½Ì¨µÄ¶ÌÐÅ·¢ËÍ£¬Ä¿Ç°Ö§³ÖwindowsXP¡¢2000¡¢2003¡¢LinuxµÈ²Ù×÷ϵͳ¡£ÊÇʵÏÖÒµÎñϵͳºÍ¶ÌÐÅϵͳ¼Þ½ÓµÄÀíÏ빤¾ß¡£
 
 
 JAVA¿ª·¢°ü¹¦ÄܽéÉÜ
 
 1¡¢Ä¿Ç°Ö÷ÒªÖ§³ÖWavecomϵÁкÍSimemensϵÁвúÆ·£¬
Ö§³ÖM1206B¡¢ M1306B¡¢WMOD2 Wismo¡¢ MC35i¡¢M35¡¢ M50¡¢ M65¡¢ C45¡¢TC35i¡¢ C65
2¡¢Í¬Ê±Ö§³ÖPDUºÍTEXTЭÒé¡£
3¡¢Ö§³Ö¶ÌÐÅ·¢ËͺͶÌÐŽÓÊÕ¡£
4¡¢Ö§³Ö7bit, 8bit and UCS2 (Unicode) ¶ÌÐűàÂë¸ñʽ¡£
5¡¢Ö§³Ö³¬³¤¶ÌÐÅ¡£
6¡¢Ö§³ÖÉÁÐÅ¡£
7¡¢Ö§³ÖWAP PUSH ·¢ËÍ¡£
8¡¢Ö§³Ö״̬±¨¸æ¡£
9¡¢Ö§³Ö GSM ModemÉ豸״̬ÏÔʾ
10¡¢¿Éͬʱ֧³Ö¶à¸ö²»Í¬»òÕßÏàͬGSM ModemÉ豸£¬ÔÚ¶à¸öÉ豸֮¼ä¿ÉÒÔ×Ô¶¯¾ùºâ·ÓÉ·¢ËÍ¡£
11¡¢Ö§³Ö¶ÌÐÅÓÅÏȼ¶É趨¡£
12¡¢Í¨¹ý¶ÌÐŶÓÁÐÖ§³Öͬ²½¡¢Òì²½½ÓÊպͷ¢ËͶÌÐÅ¡£
 
 Ê¹ÓýéÉÜ
 
 1¡¢ÏÂÔØJDK1.4.2 »òÕ߸ü¸ß°æ±¾½øÐа²×°¡£
2¡¢½âѹËõTerrySMS ѹËõÈí¼þ°ü£º
JarÊÇÔËÐÐËùÐèÒªµÄËùÓеÄjarÎļþ¡£
Terrysms-3.1-RC1.jar£º¶ÌÐÅ¿ª·¢µ÷ÓÃAPI
comm.jar £º´®¿Úµ÷ÓÃ
c ......

java web¿ª·¢ÖзÀÖ¹ÂÒÂëµÄ·½·¨

1.ÔÚϵͳÖе¼ÈëÒ»ÏÂsource
SetCharacterEncodingFilter.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.s ......

java´¦Àíwebservice

   ¾õµÃÕâÆªÎÄÕ±ȽÏÓÐÓþÍתÁË¡£¡£¡£
webservice
    ÔÚÍøÉÏ¿´ÁËһϸ÷ÀàµÄ½Ì³Ì,javaºÍ.netÁ½ÖÖÓïÑÔÉú³ÉµÄwebserviceÖ®¼äµÄ»¥Í¨Ê¼ÖÕÊÇÒ»¸öÎÊÌâ,ÏëÕÒÒ»ÖÖjavaµ÷ÓÃ.netдµÄwebservice´úÀí·½·¨²»ÈÝÒ×,½á¹ûÃþË÷ÖÐjboss-ideÕâ¸öEclipse²å¼þ½â¾öÁËÎÊÌâ.
    µ±È»Ê×ÏÈÊǰ²×°jboss-ideÕâ¸ö²å¼þÁË(Ôõô°²×°¾Í¶à˵ÁË,ÍøÉ϶àµÄÊÇ),jboss-ide×Ô´øÓÐÉú³Éweb service-test-client,½øÈëн¨-ÆäËû-jboss-ide,ÀïÃæ¿ÉÒÔ¿´ÓÐwebservice-webservice -test-client,²»ÓÃ˵ѡÔñ½øÈë.ÀïÃæ»áÓÐÑ¡ÔñwsdlÎļþµØÖ·µÄÑ¡Ôñ,ÐèҪעÒâµÄÊǵ±µ÷ÓÃ.netдµÄwebserviceʱ,ÍùÍùÊÇhttp://local/ServiceCenter/Service.asmxÕâÖÖµÄÐÎʽ,´Ëʱ±ØÐëÔÚºóÃæ¼ÓÈë?wsdl,ÀýÈçhttp://local/ServiceCenter/Service.asmx?wsdl,²ÅÄÜÕý³£Éú³É´úÀí,±ÊÕß¿ªÊ¼µÄʱºò¾ÍÊÇ¿¨ÔÚÕâÀï....
    Éú³É´úÀíºó,ÍùÍù»á³öÏÖ±àÒë´íÎó,ÀýÈç±ÊÕ߾ͳöÏÖÈçÏ´íÎó:
    oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
    oper.setUse(org.apache.axis.enum.Use.LITERAL);
×¢ÒâÆäÖеÄenumµÄ¹Ø¼ü×ÖÔÚjdk1.5°æ±¾ÒÔºóÒѱ»Ê¹ÓÃ,ÐèÒª¸Ä³É
&nbs ......

»ùÓÚJavaµÄWebÓ¦Óÿª·¢¹æ·¶

 1 ǰÑÔ
¡¡ÎªÁËʹÈí¼þ¿ª·¢¹ý³ÌÓÐÕ¿ÉÑ­£¬±£Ö¤Èí¼þÖÊÁ¿£¬¼ÓÇ¿¿ª·¢¹ÜÀí¡£
2 ¿ª·¢¹ÜÀí
¡¡ÏîÄ¿½ø¶ÈÖܱ¨±í¸ñÈçÏ£º
¡¡ÏîÄ¿±àºÅ£º
¡¡»ã±¨ÈË£º
¡¡»ã±¨ÈÕÆÚ£º
¡¡ÏîÄ¿½ø¶ÈÏêϸÃèÊö£º
¡¡ÆäËûÎÊÌ⣺
3 ÏîÄ¿ÖÜÆÚ
¡¡Ë¾ÏîÄ¿¿ª·¢ÖÜÆÚ·ÖΪÒÔϼ¸¸ö²½Ö裺
¡¡²½Öè ˵Ã÷ ²ÎÓë½ÇÉ« Éú³ÉÎĵµ»ò³ÌÐò£¨´ò*ºÅΪ¿ÉÑ¡£©
¡¡¿ÉÐÐÐÔ·ÖÎö ¶ÔÏîÄ¿µÄ¼¼Êõ£¬¹¦ÄÜÐèÇóºÍÊг¡½øÐе÷Ñкͳõ²½·ÖÎö£¬È·¶¨ÊÇ·ñÐèÒªÁ¢Ï·¢¡£ ²¿ÃÅÖ÷¹ÜºËÐļ¼ÊõÔ± ¿ÉÐÐÐÔ·ÖÎö±¨¸æ*¼¼Êõµ÷Ñб¨¸æ* Á¢Ïî ÕýʽÁ¢ÏÓɲ¿ÃÅÖ÷¹ÜÖ¸¶¨ÏîÄ¿¾­Àí£¬ÏîÄ¿¾­ÀíÖÆ¶¨³õ²½¼Æ»®¡£³õ²½¼Æ»®°üÀ¨Éè¼ÆºÍ¿ª·¢Ê±¼äµÄ³õ²½¹ÀËã¡£ ²¿ÃÅÖ÷¹ÜºËÐļ¼ÊõÔ± ÏîÄ¿³õ²½¼Æ»® ÐèÇó·ÖÎö ¶ÔÏîÄ¿½øÐÐÏêϸµÄÐèÇó·ÖÎö£¬±àдÐèÇó·ÖÎöÎĵµ¡£¶ÔÓÚB/S½á¹¹Èí¼þϵͳÐèÒªÖÆ×÷¾²Ì¬ÑÝÊ¾Ò³Ãæ¡£ÐèÇó·ÖÎöÎĵµºÍ¾²Ì¬ÑÝÊ¾Ò³ÃæÐèҪͨ¹ý²¿ÃÅÖ÷¹ÜÉóÅú²ÅÄܹ»½øÐе½ÏÂÒ»¸ö²½Öè ÏîÄ¿¾­ÀíÏîÄ¿ºËÐÄС×é ÐèÇó·ÖÎöÎĵµ¾²Ì¬ÑÝÊ¾Ò³ÃæÏîÄ¿¼Æ»®ÐÞ¶©°æ±¾ÏêϸÉè¼Æ ¸ù¾ÝÐèÇó·ÖÎö¶ÔÏîÄ¿½øÐÐÏêϸÉè¼Æ¡£ÏêϸÉè¼ÆÒÔºó£¬ÏîÄ¿¾­Àíͬ²¿ÃÅÖ÷¹ÜÒ»ÆðÖ¸¶¨ÏîĿС×鿪·¢³ÉÔ±¡£ ÏîÄ¿¾­ÀíÏîÄ¿ºËÐÄС×é ÏêϸÉè¼ÆÎĵµÏîÄ¿¼Æ»®È·¶¨°æ±¾¿ª·¢ ¸ù¾ÝÉè¼Æ¿ª·¢ÏîÄ¿£¬ÓÉÃÀ¹¤¶Ô²Ù×÷½çÃæ½øÐÐÃÀ»¯¡£ ÏîÄ¿¾­ÀíÏîÄ¿¿ª·¢Ô±Ã ......

Javaʼþ´¦ÀíµÄ4ÖÖ·½·¨

 µÚÒ»ÖÖ ×ÔÉíÀà×÷Ϊʼþ¼àÌýÆ÷
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 ThisClassEvent(){
super("Javaʼþ¼àÌý»úÖÆ");
setLayout(new FlowLayout());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
btn=new JButton("µã»÷");
btn.addActionListener(this);
getContentPane().add(btn);
setBounds(200,200,300,160);
setVisible(true);
}
/**************************************/
public void actionPerformed (ActionEvent e){
Container c=getContentPane();
c.setBackground(Color.red);
}
/**************************************/
public static void main(String args[]){
new ThisClassEvent();
}
}

 
µÚ¶þÖÖ ÄÚ²¿Àà×÷Ϊʼþ¼àÌýÆ÷
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
*Javaʼþ´¦Àí»úÖÆ:ÄÚ²¿Àà×÷ΪÊ ......
×ܼǼÊý:6386; ×ÜÒ³Êý:1065; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [856] [857] [858] [859] 860 [861] [862] [863] [864] [865]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ