µãµãµÎµÎ(Java)
native2ascii
ÔÚWINDOWSƽ̨ϱàдµÄ×ÊÔ´Îļþ,ÒÔGB2312·½Ê½±àÂë,ÔÚ±àÒëʱÐèҪתÂë,ÒÔÈ·±£ÔÚ¸÷¸öƽ̨ÉϵÄÕýÈ·ÐÔ
±àÂë:
native2ascii -encoding utf8 temp.properties ApplicationResources_zh_CN.properties
·´±àÂë:
native2ascii -reverse
JavaÈ¡ÄÚ´æÐÅÏ¢
Runtime.getRuntime().maxMemory(); // ÐéÄâ»ú¿ÉÒÔ¿ØÖƵÄ×î´óÄÚ´æÊýÁ¿
Runtime.getRuntime().totalMemory(); // ÐéÄâ»úµ±Ç°ÒѾʹÓõÄÄÚ´æÊýÁ¿
JVMÉèÖÃÄÚ´æ²ÎÊý
-Xms<size> set initial Java heap size ÉèÖÃJVM³õʼ»¯¶ÑÄÚ´æ´óС
-Xmx<size> set maximum Java heap size ÉèÖÃJVM×î´óµÄ¶ÑÄÚ´æ´óС
-Xss<size> set java thread stack size ÉèÖÃJVMÕ»ÄÚ´æ´óС
TomcatµÄjavaµ÷ÊÔ
JavaµÄµ÷ÊÔ¹¦ÄÜÊÇJVM×Ô´øµÄ,
н¨debug.batÎļþ, дÈëÒÔÏÂÄÚÈÝ, ÔËÐиÃÎļþÆô¶¯Tomcat¼´¿ÉÓëEclipseÔ¶³Ìµ÷ÊÔ
set JPDA_ADDRESS=8787
set JPDA_TRANSPORT=dt_socket
set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
startup
JspÏÂÔØÑ¡Ïî
// attachment:×÷Ϊ¸½¼þÏÂÔØ | inline:ÔÚÏß´ò¿ª
response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\";");
// Ò»¶¨Òª±£Ö¤Ã»ÓÐ×ö¹ý¹ØÓÚ½ûÖ¹ä¯ÀÀÆ÷»º´æµÄ²Ù×÷
// response.setHeader("Pragma", "No-cache");
// response.setHeader("Cache-Control", "No-cache");
// response.setDateHeader("Expires", 0);
Java·´ÉäÅжϷ½·¨ÓÐûÓзµ»ØÖµ
method.getReturnType() == void.class // ûÓзµ»ØÖµ
JavaÃüÃû¹æ·¶
PASCALÃüÃû·¨, ÓÃÓÚÀàÃû, ÿ¸öµ¥´
Ïà¹ØÎĵµ£º
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
Java °ÑÄÚ´æ»®·Ö³ÉÁ½ÖÖ£ºÒ»ÖÖÊÇÕ»Äڴ棬ÁíÒ»ÖÖÊǶÑÄÚ´æ¡£ÔÚº¯ÊýÖж¨ÒåµÄһЩ»ù±¾ÀàÐ͵ıäÁ¿ºÍ¶ÔÏóµÄÒýÓñäÁ¿¶¼ÊÇÔÚº¯ÊýµÄÕ»ÄÚ´æÖзÖÅ䣬µ±ÔÚÒ»¶Î´úÂë¿é¶¨ÒåÒ»¸ö±äÁ¿Ê±£¬Java ¾ÍÔÚÕ»ÖÐΪÕâ¸ö±äÁ¿·ÖÅäÄÚ´æ¿Õ¼ä£¬µ±³¬¹ý±äÁ¿µÄ×÷ÓÃÓòºó£¬Java »á×Ô¶¯ÊͷŵôΪ¸Ã±äÁ¿·ÖÅäµÄÄÚ´æ¿Õ¼ä£¬¸ÃÄÚ´æ¿Õ¼ä¿ÉÒÔÁ¢¼´±»Áí×÷ËüÓá£
  ......
Java·´Éä»úÖÆ
ÕªÒª
Reflection ÊÇJava±»ÊÓΪ¶¯Ì¬£¨»ò×¼¶¯Ì¬£©ÓïÑÔµÄÒ»¸ö¹Ø¼üÐÔÖÊ¡£Õâ¸ö»úÖÆÔÊÐí³ÌÐòÔÚÔËÐÐʱ͸¹ýReflection APIsÈ¡µÃÈκÎÒ»¸öÒÑÖªÃû³ÆµÄclassµÄÄÚ²¿ÐÅÏ¢£¬°üÀ¨Æämodifiers£¨ÖîÈçpublic, static µÈµÈ£©¡¢superclass£¨ÀýÈçObject£©¡¢ÊµÏÖÖ®interfaces£¨ÀýÈçCloneable£©£¬Ò²°üÀ¨fieldsºÍmethodsµÄËùÓÐÐÅÏ¢£¬² ......
Let's begin by downloading the latest version of JRE (Java Runtime
Environment) from here
.
Just click on the Download link where it says Java Runtime
Environment (JRE) 5.0 Update
, then you�ll need to accept the license
and download the Linux self-extracting file
.By default, Fe ......