打開org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202.jar文件,修改fontsConfig_pdf.xml文件中下面行
<font font-family="STSong-Light" catalog="Chinese" />






posted @ 2013-10-21 12:53 在路上... 閱讀(1773) | 評論 (0) | 編輯 收藏
posts - 33, comments - 46, trackbacks - 0, articles - 2 |
|||
Linux birt3.7環境中,部分導出pdf的漢字不能正確顯示,解決辦法:
打開org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202.jar文件,修改fontsConfig_pdf.xml文件中下面行 <font font-family="STSong-Light" catalog="Chinese" /> ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2013-10-21 12:53 在路上... 閱讀(1773) | 評論 (0) | 編輯 收藏 1、下載
wget http://mirror.bit.edu.cn/apache/subversion/subversion-1.8.3.tar.gz 2、下載依賴包 ./get-deps.sh 3.install apr ./configur make make install 4.install apr-util ./configure --with-apr=/usr/local/apr make make install 5.update sqlite sqlite-amalgamation下載安裝最新版本sqlite,解壓 4.yum install glibc gcc expat expat-devel openssl openssl-devel 下載有關依賴包 5.compile svn ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-zlib \ --with-openssl --enable-maintainer-mode --with-serf=/usr/local/serf --enable-mod-activation 可能錯誤現象: 只需要執行以下命令,將apr和apr-util都卸載即可 rpm -e --allmatches apr-util --nodeps posted @ 2013-09-11 20:35 在路上... 閱讀(1797) | 評論 (0) | 編輯 收藏
1、打包文件命名規則
根據JavaEE規范,打包的EAR文件可以不適用部署描述符部署,因此需要使用一些默認的約定規則,例如 •EJBs and client archives are packaged as .jar files. •Web applications are packaged as .war files. •Resource adapters are packaged as .rar files. •Enterprise applications are packaged as .ear files, and can contain other Java EE modules such as EJBs, JDBC, JMS, Web applications, and Resource Adapters. •Web Services can be packaged either as .war files or as .jar files, depending on whether they are implemented using Java classes or EJBs. Typically, the .war or .jar files are then packaged in an Enterprise Application .ear file. •Java EE libraries are packaged either as an Enterprise Application (.ear file) or as a standard Java EE module. •Client applications and optional packages are packaged as .jar files. •For an exploded archived Web application, in the absence of WEB-INF/web.xml descriptor, the name of the directory should have a .war suffix. •For an exploded archived Enterprise Application without a META-INF/application.xml descriptor, the directory should have an .ear suffix. Within the application, the directory of exploded Web module should have a .war suffix. Similarly, the exploded EJB module should have a .jar suffix and the exploded RAR module should have a .rar suffix. •If an exploded Enterprise Application contains no META-INF/application.xml descriptor, the order in which modules are deployed is undefined and is dependent on the underlying File.listFiles() method order. To ensure a specific order in which modules are deployed, you must add an application.xml descriptor and list the modules in the desired order. 如果在weblogic下面如果不使用上面的規則,則需要在application.xml 文件中指定對應的uri路徑
posted @ 2013-04-08 16:18 在路上... 閱讀(3459) | 評論 (0) | 編輯 收藏 1、安裝編譯器 Objective-C的編譯器有很多,其中LLVM屬于從GCC發展出來的,主要使用在蘋果的平臺中,GNU可以使用GnuStep,網址是http://wwwmain.gnustep.org/,從這里可以下載Windows版本的gcc編譯器,配合codeblocks可以編譯調試object c程序。 2、安裝CodeBlocks IDE環境 下載地址:http://www.codeblocks.org/ 3、配置編譯器 安裝好codeblocks之后,進入Settings->Compiler and debugger...,選擇GNU GCC Compiler編譯器,復制重新命名為“GNUstep MinGW Compiler“配置 編譯其他選項錄入:-fconstant-string-class=NSConstantString -std=c99 同時指定搜索目錄: 設置編譯器、連接器的搜索目錄 4、配置語法、文件類型,關鍵字等 添加文件類型支持 1) 進入Settings->Environment... 2) 選擇 Files extension handling 添加*.m 3) 進入 Project->Project tree->Edit file types & categories... 4) 在Sources, 下面添加 *.m到文件類型列表中. 添加語法高亮支持 1) 進入 Settings->Editor... 2) 選擇 Syntax highlighting 進入Filemasks.... 添加*.m 到文件類型列表中. 3) 進入 Keywords... (緊靠Filemasks...) 添加下面的關鍵字到列表中
5、代碼測試 新建一個工程,修改main.c為main.m,錄入下面代碼 #import <Foundation/Foundation.h> int main (int argc, const char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog(@"%@",@"hello world"); [pool drain]; return 0; } 編譯運行效果如下:
posted @ 2012-03-07 17:40 在路上... 閱讀(7171) | 評論 (5) | 編輯 收藏 在linux環境部署應用時,有時候需要用到AWT處理圖片的功能,典型的就是圖片的縮放處理等等,可能會遇到下面錯誤: 甚至在默寫情況下面可能導致jvm崩潰,對于該問題的解決辦法是 1、配置java啟動參數java -Djava.awt.headless=true 2、配置合適的DISPLAY屬性 例如通過當前用戶啟動了一個x window的圖形界面,可以將設置類似export DISPLAY=localhost:10.0這樣的環境變量將awt定位到一個實際存在的環境處理。 配置成功之后,可能可以看到這樣的提示 nl.ikarus.nxt.priv.imageio.icoreader.lib.ICOReader loaded, version: 0.06.064 build: 691 配置好之后就不會報錯了 網上還有一種辦法,啟動Xvfb 使用 ls -l /tmp/.X*lock 可以查看當前啟動了那些xwindow,如果發現X0,可能0.0已經被使用了使用兩個命令: ------------------------------------ Xvfb :1 -screen 0 800x600x16 & 啟動Xwindows的虛擬設備 export DISPLAY=localhost:1.0 配置本地環境 ------------------------------------ 參考:http://javatechniques.com/blog/linux-x11-libraries-for-headless-mode/ posted @ 2012-01-19 12:01 在路上... 閱讀(920) | 評論 (0) | 編輯 收藏 |
|||