JAVA¶ÁÈ¡PDFÎļþ
ÔÚjavaÖÐÒª¶ÁÈ¡pdfÎļþÄÚÈÝ£¬ÎÒÃÇ¿ÉÒÔ½èÖúµÚÈý·½Èí¼þʵÏÖ¡£³£ÓõÄÊÇxpdf£¬±¾Îľͼòµ¥½éÉÜÔÚlinuxÏÂÈçºÎ°²×°xpdf£¬¼°ÔÚjavaÖÐÈçºÎÀûÓÃxpdf¶ÁÈ¡pdfÎļþÄÚÈÝ¡£
Ò».°²×°xpdf
ÔÚfcϵÁÐÏ£¬²»Óð²×°£¬¿ÉÒÔÖ±½Óyum£¬µ«ÊDZÊÕß½¨Ò黹ÊÇÏÂÔØ°²×°µÄºÃ£¬ÒòΪ±ÊÕßÔø¾Åöµ½¹ýÕâÑùµÄÎÊÌ⣬¿Í»§·þÎñÆ÷ÉϵÄxpdfÊÇyum°²×°µÄ£¬ÓÐһЩÌØÊâµÄpdfÎļþ¾ÍÎÞ·¨Ô¤ÀÀ£¬µ«Êǽ«yum°²×°µÄxpdfжÔØ£¬È»ºóÏÂÔØxpdf°²×°³ÌÐò£¬ÔÙÖØа²×°ºó£¬¾Í¿ÉÒÔÁË¡£
1.ÏÂÔØ
ok£¬ÎÒÃÇÐèÒªÏÂÔصÄxpdf°²×°°üÖ÷ÒªÓÐÈý¸ö£º
Ö÷³ÌÐò£ºftp://ftp.foolabs.com/pub/xpdf/xpdf-3.01pl2-linux.tar.gz
¼òÌåÖÐÎÄÖ§³Ö£ºftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-simplified.tar.gz
·±ÌåÖÐÎÄÖ§³Ö£ºftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-traditional.tar.gz
2.°²×°²¿Êð
(1)½øÈëÏÂÔØĿ¼£¬½«Ö÷³ÌÐò½âѹÖÁ/usr£¬Ò²¿ÉÒÔÊÇÆäËûµØ·½£¬¸ù¾Ý¸öÈËÇé¿ö¶ø¶¨¡£
#tar zvfx xpdf-3.01pl2-linux.tar.gz -C /usr
#cd usrÈ»ºó½«ÆäÖØÃüÃû£¬ÕâÑù¿´ÆðÀ´¼òµ¥µã
mv xpdf-3.01pl2-linux/ xpdf(2)½¨Á¢ÖÐÎÄÖ§³Ö¡£»Øµ½ÏÂÔØĿ¼£¬ÒÀ´ÎÖ´ÐУº
#tar zvfx xpdf-chinese-simplified.tar.gz -C /usr/xpdf
#mv /usr/xpdf/xpdf-chinese-simplified /usr/xpdf/chinese-simplified
#tar zvfx xpdf-chinese-traditional.tar.gz -C /usr/xpdf
#mv /usr/xpdf/xpdf-chinese-traditional /usr/xpdf/chinese-traditional(3)ÅäÖû·¾³
#vi /etc/bashrcÔö¼ÓÈçÏÂÄÚÈÝ
export PATH=/usr/xpdf/:$PATH
È·±£ÖØÆô»úÆ÷ºó£¬ÔÚ¿ØÖÆ̨ÊäÈëxpdf²»»áÌáʾÕÒ²»µ½ÃüÁî»òÎļþ¼´¿É¡£
(4)×ÊÔ´ÅäÖÃ
#cd /usr/xpdf
#cp sample-xpdfrc xpdfrc
#vi xpdfrc*ÔÚÎļþ¿ªÊ¼´¦Ôö¼ÓÈçÏÂÄÚÈÝ(½«/usr/xpdfÌ滻ΪxpdfµÄʵ¼Ê·¾¶)*
#----- begin Chinese Simplified support package (2004-jul-27)
cidToUnicode Adobe-GB1 "/usr/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode"
unicodeMap ISO-2022-CN "/usr/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap"
unicodeMap EUC-CN "/usr/xpdf/chinese-simplified/EUC-CN.unicodeMap"
unicodeMap GBK "/usr/xpdf/chinese-simplified/GBK.unicodeMap"
cMapDir Adobe-GB1 "/usr/xpdf/chinese-simplifie
Ïà¹ØÎĵµ£º
package debug;import java.io.*;import java.lang.Thread;class MyThread extends Thread{ public int x = 0; public void run(){ System.out.println(++x); }}class R implements Runnable{ private int x = 0; public void run(){ System.out.printl ......
2009Äê10ÔÂ25ÈÕ£¬µÃÒ»Êéµê200ÔªÂòÁËËı¾Êéj2se»ù´¡½Ì³Ì£¬j2eeÓ¦Óÿª·¢Ïê½â£¬javaÏîÄ¿¿ª·¢È«³Ìʵ¼£¬java web¿ª·¢ËÙѧ±¦µäÊ鿪ʼ
2010Äê2ÔÂ3ÈÕ£¬µÚÒ»Ì×»ùÓÚú¿ó°²È«¹ÜÀíµÄÈí¼þÄ£Ðͼ°Æ䲿·Ö´úÂë³ÉÐÍ
Èý¸öÔ£¬ÕâÊÇÒ»³¡Ø¬ÃΣ¬²»¹ýÕâÈý¸öÔ£¬ÓÖÊÇÒ»ÖÖ¾ªÏ²ºÍ¿ìÀÖ
´ÓÊý¾ÝÀàÐÍ£¬Óï·¨½á¹¹£¬jdk ¹ýÑ»·£¬´³Êý×飬¼¯ºÏ£¬µü´ú£¬¶ÓÁУ ......
Problem: email thread is hanging at socket read
Today we found a email problem in production, all of the mail threads (3 threads) are hanging/sitting/blocking at same point
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
......
ÔÚѧУ×ÔѧJava£¬ÓõÄÊÇ¡¶Java³ÌÐòÉè¼Æ——Ò»ÖÖ¿ìѧ¿ÆµÄ·½·¨¡·¡£¿´ÁËÒÔºó·¢ÏÖ£¬°¡£¬ÕæÊÇÒ»±¾ºÃÊé¡£ËüÕæÊÇ¿çѧ¿Æ°¡£¬Êýѧ£¬ÎïÀí£¬ÉúÎïÎÊÌⶼ¿ÉÒÔÓÃJava×÷Ϊ¹¤¾ßÀ´Ñо¿¡£³ýÁ˸÷ÖÖÊýѧÎÊÌ⣬±ÈÈçËã·¨£¬µÝ¹é£¬Ëü»¹Ñо¿ÁËÎïÀíÎÊÌâ¡£ËüÉæ¼°Á˸÷ÖÖÎÊÌ⣬Éø͸ÀíÂÛ£¬»ùÒò×éѧ£¬Mandelbort¼¯µÈ¡£×îÅ£µÄÊÇ£¬ËüÓÃÆõԼʽµÄÉè¼ ......
javaµÄ·¶ÐÍ»úÖÆ¿´ÆðÀ´ÓеãÏñC++µÄÄ£°æ£¬µ«Ïà±È½ÏC++µÄÄ£°æÀ࣬javaÖеķ¶ÐÍûÓйؼü×Ötemplate£¬²¢ÇÒÓÐ×Ų»Í¬µÄʵÏÖ»úÖÆ£¨±¾ÖÊÇø±ð£©¡£
·¶ÐÍÀà
ÏÈ¿´Ò»¸ö·¶ÐÍÀàµÄÀý×Ó£º
public class Demo1<T> {
private T value;
public Demo1(T value) {
&n ......