ÎÒÓÃÕâ¸ö¿´Ð§¹û£ºÒ»¸ö»ù±¾µÎJava´°¿Ú´ø°´¼ü¼ì²â
Ò»¸öJava´°¿Ú´ø°´¼ü¼ì²â£¨ÅÜJava¿ÉÊÓС³ÌÐòʱÓã©£¬沒¼ÓÐÞÊΣ¬°³×Ô¼ºÓõΡ£
package math;
import java.awt.Color;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
/**
* »ù±¾µÄ»æͼ´°¿Ú£¬»Ø³µ¹Ø±Õ´°¿Ú
*/
@SuppressWarnings("serial")
public class GraphicTest extends Frame implements KeyListener {
/**
* °´¼ü¼ì²â
*/
public void keyPressed(KeyEvent e) {
switch (e.getKeyCode()) {
case 10:
System.out.println("I am enter");
System.exit(0);
break;
case 37: // ×ó
break;
case 38: // ÉÏ
break;
case 39: // ÓÒ
break;
case 40: // ÏÂ
break;
}
this.repaint();
}
public void keyTyped(KeyEvent e) {
}
public void keyReleased(KeyEvent e) {
}
public GraphicTest() {
super("Frame-By-Lazybone");
setSize(1000, 800);
this.addKeyListener(this);
this.setVisible(true);
}
int width = 25;
int startX = 50;
int startY = 50;
int count = 25;
/** »æÖÆ·½·¨ **/
public void paint(Graphics g) {
g.setColor(Color.black);
/** »ÆåÅÌ **/
for (int i = 1; i < count + 1; i++) {
g.drawLine(startX + i * width, width + startX, startX + i * width,
count * width + startY);
}
for (int i = 1; i < count + 1; i++) {
g.drawLine(startX + width, i * width + startY, count * width
+ startX, i * width + startY);
}
}
public static void main(String[] args) {
new GraphicTest();
}
}
Ïà¹ØÎĵµ£º
½ñÌìûʸɡ££¬ÄÃJavaÖеÄmainº¯ÊýÀ´Ịֽ̀¬¡£¡£»¹ÇëÖîλָµã°¡£¬£¬
public static void main(String args [])
{
.....
}
ÕâÊÇ´ó¼ÒÒ»°ãµÄд·¨°É£¬ÕâÀïÎÒÏëÌ̵ֽÄÖ÷ÒªÓÐÒÔϼ¸µã£º
1.ËüµÄ²ÎÊýÎÊÌ⣬ÄǸö²ÎÊýµ¹µ×ÓкÎÓÃÄØ£¬£¬ÕâÊǺÜÁîÈËÃÔ»óµÄ£¬ÕâÀï×Ô¼ºÐ´Á˸öÀý×ÓÊÔÁËһϣ¬µ«ÊdzöÏÖÁËÒì³££º
class A
{
......
Ò»¡¢Axis°²×° 1¡¢»·¾³ J2SE SDK 1.3 or 1.4: ÎÒʹÓà 1.4.2 Servlet Container: ÎÒʹÓõÄTomcat 5.0
2¡¢µ½ http://ws.apache.org/Axis/ÍøÕ¾ÏÂÔØAxis°²×°°ü
3¡¢½âѹËõ°²×°°ü£¬½«Axis_UNZIP_PATH\Axis-version\webappsϵÄAxis°ü¿½±´µ½TOMCAT_HOME\webapps\Ï£¬ÒÔÏÂÔ¼¶¨Axis_HOMEΪ¸ÃTOMCAT_HOME\webapps\AxisĿ¼
4¡¢Æô¶¯ ......
DOMÊÇ»ùÓÚƽ̨¡¢ÓïÑÔÎ޹صĹٷ½W3C±ê×¼¡£»ùÓÚÊ÷µÄ²ã´Î£¬ÆäÓŵãÊÇ¿ÉÒÔÒÆÖ²£¬±à³ÌÈÝÒ×£¬¿ª·¢ÈËÔ±Ö»ÐèÒªµ÷Óý¨Ê÷µÄÖ¸Áî¡£ÆäȱµãÊǼÓÔØ´óÎļþ²»ÀíÏë¡£
¡¡¡¡SAXÊÇ»ùÓÚʼþÄ£Ð͵ģ¬ËüÔÚ½âÎö XML ÎĵµµÄʱºò¿ÉÒÔ´¥·¢Ò»ÏµÁеÄʼþ£¬µ±·¢ÏÖ¸ø¶¨µÄtagµÄʱºò£¬Ëü¿ÉÒÔ¼¤»îÒ»¸ö»Øµ÷·½·¨£¬¸æË߸÷½·¨Öƶ¨µÄ±êÇ©ÒѾÕÒµ½¡£ÀàËÆÓëÁ÷ýÌåµÄ½ ......
¹ØÓÚJavaÒç³ö·ÖÀ࣬ÎÒ¾³£Åöµ½µÄÊÇÁ½ÀࣺһÀàÊÇjava.lang.OutOfMemoryError: Java heap space£¬Ò»ÀàÊÇjava.lang.OutOfMemoryError: PermGen space¡£
ÔÚÕâÁ½ÀàÖУ¬Ç°ÕßÅö¼ûµÄ´ÎÊý±È½ÏƵ·±¡£ÒòΪµ¼ÖÂJava heap spaceµÄÇé¿ö£¬ÓÐʱºò²¢²»ÊÇÄÚ´æ²»¹»£¬ËüÒ²»áÅ×´Ë´íÎóÐÅÏ¢¡£ÀýÈçÎÒ¾ÍÅöµ½¹ýÕâÑùµÄÇé¿ö£¬ÎÒµ±Ê±Í¨¹ýGCÈÕÖ¾·¢ÏÖ£¬ÄÚ´ ......