Ubuntu 9.10 java °²×°£¨×ªÔØ£©
¶ÔÓÚ9.10À´Ëµ£¬¿ÉÒÔͨ¹ýubuntuÈí¼þÖÐÐÄÀ´²éÕÒ°²×°£¬ÊÇÊ®·Ö·½±ãµÄ£¬µ«ÊÇÏÂÔصÄËÙ¶ÈÕæÈÃÈËÊÇÊܲ»Á˵ģ¬ËùÒÔÏÂÃæ×Ô¼º¶¯ÊÖ°²×°.
1.ÏÂÔØ×îеÄjdk£ºhttp://cds-esd.sun.com/ESD6/JSCDL/jdk/6u17-b04/jdk-6u17-linux-i586.bin?AuthParam=1259335974_17e931a75ba9b3f9f8cc6cf4beacacb8&TicketId=nod3BVwYT3R%2FkeMhkk%2BdV5qQdg%3D%3D&GroupName=CDS&FilePath=/ESD6/JSCDL/jdk/6u17-b04/jdk-6u17-linux-i586.bin&File=jdk-6u17-linux-i586.bin
2.½«binÎļþcopyµ½ÄãÒª°²×°µÄĿ¼£¬ÎÒÕâÀïÊÇ£¯usr£¯javaÏ£¬×¢ÒâÒªÔÚshellÏÂÓùÜÀíÔ±µÄÉí·Ý²ÅÄܸ´ÖÆ£¬ÎÒµÄÏÂÔØÎļþµÄĿ¼ÊÇÏÂÔØ£¬ËùÒÔÎÒ²ÉÓÃÕâÑùµÄÃüÁ
cd ÏÂÔØ
sudo cp j*.bin /usr/java
3.¸ü¸ÄbinÎļþµÄȨÏÞ£¬Ê¹ÆäÄÜÔËÐУº
cd /usr/java
sudo chmod 777 *.bin
4.ÔËÐа²×°£ºsudo ./*.bin ÕâÊÇÖÕ¶ËÊdzöÏÖ°²×°Ðí¿É£¬ÏÂÃæ»áÓУ£more--×ÖÑù£¬ÕâÀïÓÐЩÈË˵°²enter£¬²»¹ýÓеãSB£¬ÒòΪ»áÈÃÄã°´µ½·³£¬ËùÒÔ°´q£¬È»ºó»á³öÏÖÊÇ·ñÒª°²×°µÄѯÎÊ£¬ÊäÈ룺yes£¬Õâ¾Í¿ªÊ¼½â°üÁË£¬µ½×îºó˵ҪÊäÈëEnter¼ÌÐø£¬°´Ï¾ÍokÁË¡£
5.ÅäÖû·¾³±äÁ¿£º
sudo gedit ~/.bashrc
ÔÚÎļþµÄ×îºó¼ÓÈ룺
# java config
JAVA_HOME=/usr/java/jdk1.6.0
export JAVA_HOME
JAVA_BIN=/usr/java/jdk1.6.0/bin
export JAVA_BIN
PATH=$PATH:$JAVA_HOME/bin
export PATH
CLASSPATH=.:$JAVA_HOME/lib/*.jar
export CLASSPATH
×¢Ò⣣ºÅÇ°Ãæ²»ÒªÓпոñ£¬Òª²»»á³öÏÖ£º££²»ÊÇÓÐЧµÄÃüÁî¡£ java_homeÊÇjava°²×°ËùÔÚµÄÎļþ¼Ð£¬ÎªÁË·½±ã£¬ÎÒ°ÑÔÏȵÄÎļþ¼ÐÃû¸ÄÃûÁË£¬ÉÏÃæÓ¦¸Ã²»ÄÑÀí½â£¬ºÍwinÏÂÃæµÄÒ»Ñù£¬ÅäÖúÃjava_home,classpath,path¾Íok¡£
ÔÎĵØÖ·£ºhttp://blog.sina.com.cn/s/blog_5168a9e40100ftmb.html
Ïà¹ØÎĵµ£º
javax.swing.plaf.metal.MetalLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.mac.MacLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel //java6ÐÂƤ·ô£¬²£Á§Í¸Ã÷
ÎÒµÄ×ÊÔ´ÖÐÓÐÏà¹Ø java swing ·½ÃæµÄ½Ì³Ì£¬j ......
EclipseÓënetbeansʹÓÃÆÀ²â
½çÃæ
1 ÔÚ½çÃæÉÏnetbeans±È½ÏƯÁÁ,ÓѺá£µÃ·Ö 9
2 EclipseÓкÜÇ¿µÄ¶¨ÖÆÐУ¬Ã»netbeansÃÀ¹Û¡£ÊʺϸßÊÖ µÃ·Ö 8
¹¦ÄÜ
²»×ö±È½Ï
̸һЩ¸öÈË¿´·¨:ÔÚ¹¦ÄÜÉÏEclipseÖ§³Ö´óÁ¿µÄÀ©Õ¹,²»½ö½öÊÇÒ»¸ö java¿ª·¢¹¤¾ß,¸ü¿ÉÒÔÓÃÀ´¿ª·¢ c c++
phpµÈµÈ,¹¦ÄÜ¿ÉÒÔÎÞÏÞµÄÀ©Õ¹.netbeansÒ²Ö§³ÖÀ©Õ¹,¿ÉÒ²ÏÖÔ ......
Õâ¶ÎÔ´´úÂëʵÏÖÁËÔÚÒ»¸ö´°ÌåÖÐÏÔʾһ¸ö³¡¾°£»ÒÔÒ»¸öÆåÅ̸ñ×öµÄµØÃ棬ÔÚµØÃæÉϸ¡×ÅÒ»¸öÀ¶É«µÄÇòÌ壬ÔÚ³¡¾°ÖÐÓÐÒ»¸ö»·¾³¹âºÍÒ»¸öÖ±Éä¹â£¬ÊµÏÖÁËÓÃÊó±êÈ«½Ç¶ÈµÄ¹Û²ì³¡¾°µÄ¹¦ÄÜ¡£´ÓijÖÖÒâÒåÉÏÀ´ËµÕâµÄȷʵÏÖÁËÒ»²¿3DÓÎÏ·×îÔʼµÄ¿ò¼Ü¡£
´úÂëÊÇÕÕ×Å¡¶Killer Game Programming in Java¡·Ò»ÊéÖйØÓÚ3DÓÎÏ·ÖÆ×÷µÄÄDz¿·ÖдµÄ£¬ÓÉÓÚ´ ......
ÓÐÁ½ÖÖʵÏÖ·½·¨£¬·Ö±ðÊǼ̳ÐThreadÀàÓëʵÏÖRunnable½Ó¿Ú
ÓÃsynchronized¹Ø¼ü×ÖÐÞÊÎͬ²½·½·¨
·´¶ÔʹÓÃstop()£¬ÊÇÒòΪËü²»°²È«¡£Ëü»á½â³ýÓÉÏ̻߳ñÈ¡µÄËùÓÐËø¶¨£¬¶øÇÒÈç¹û¶ÔÏó´¦ÓÚÒ»ÖÖ²»Á¬¹á״̬£¬ÄÇôÆäËûÏß³ÌÄÜÔÚÄÇÖÖ״̬ϼì²éºÍÐÞ¸ÄËüÃÇ¡£½á¹ûºÜÄѼì²é³öÕæÕýµÄÎÊÌâËùÔÚ¡£suspend()·½·¨ÈÝÒ×·¢ÉúËÀËø¡£µ÷ÓÃsuspend()µÄʱºò ......
JavaÔÚ²»Í¬»·¾³Ï»ñÈ¡µ±Ç°Â·¾¶µÄ·½·¨
¹Ø¼ü×Ö: javaÔÚ²»Í¬»·¾³Ï»ñÈ¡µ±Ç°Â·¾¶µÄ·½·¨
1. ÔÚServlet\FilterµÈServlet web»·¾³ÖУ¬Ö»Òª»ñµÃjavax.servlet.ServletContextÀàÐÍ£¬Ôò¿ÉÒÔͨ¹ý getRealPath("...") »ñµÃ·¾¶¡£Ïà¶Ô·¾¶ÖÐ×²ãĿ¼¿Éͨ¹ý²ÎÊý“"/"”»ñÈ¡¡£
request.getSession().getServletContext() ......