본문 바로가기
반응형

FullStack/21. Java49

Pdf 한글 출력 Springframework에서 AbstractPdfView를 상속받아서 한글을 출력했더니 깨졌다. 블로그를 검색하고 해도 안되더니 5버전때 약간 바뀌었군. 한글 테스트를 해볼겸 해서 나의 윈도우에 있는 Font를 모두 출력해보았다. BaseFont.IDENTITY_H 해당 encoding로 해야함. int i = FontFactory.registerDirectory("C:\\Windows\\Fonts\\");System.out.println("Result = " + i);Set set= FontFactory.getRegisteredFonts();Iterator it = set.iterator();document.setPageSize(PageSize.A4);Font font;String fontname=.. 2012. 5. 18.
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds Ant로 빌드시 다음의 경고가 나타났다.warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds Buildfile: D:\Dev_home\workspace\springapp\build.xmlbuild: [javac] D:\Dev_home\workspace\springapp\build.xml:44: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable buildsBUILD SUCCESSFULTotal time: 262 .. 2012. 3. 30.
[ANT] taskdef class org.apache.catalina.ant.InstallTask cannot be found Ant로 되어있는 샘플을 돌릴려고 하던중에 ant에서 다음의 오류를 돌려주었다.BUILD FAILEDD:\Dev_home\workspace\springapp\build.xml:84: taskdef class org.apache.catalina.ant.InstallTask cannot be foundusing the classloader AntClassLoader[D:\Dev_home\apache-tomcat-7.0.26\lib\catalina-ant.jar] 그리해서 build.xml에서 org.apache.catalina.ant.InstallTask 이 부분이 문제였던듯.org.apache.catalina.ant.DeployTask 변경하니 잘 돌아간다. :) Before After 참고 : http:.. 2012. 3. 30.
Recompile with -Xlint:unchecked for details Ant로 컴파일 하던 도중에 다음의 메세지가 나타나서 한참을 고민하였습니다. 인코딩에 대한 컴파일 옵션을 주라고 친절히 설명이 나온것도 모르고 말입니다. [javac] Compiling 1 source file to E:\Project\Work\2010\WebContent\WEB-INF\classes [javac] Note: comGateway.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [Ant] 이클립스에 너무 의존하다보니 멀 하나 하려고 어렵네요. [참고] http://www.coderanch.com/t/108098/tools/xlint-javac-task 2011. 5. 25.
반응형