0
rfid 프린터와의 통신을 위해 javapos를 프로젝트에서 사용했습니다. 나는 이클립스에서 그것을 개발했다.
나는 모든 일을 잘 일식에서 프로젝트를 실행할 때. 내가 cmd
에서 실행할 때cmd에서 java 프로그램을 실행할 때 xml 파일을 찾을 수 없습니다.
는하지만 오류 얻을 : 테스트를 위해 내가 wineet.xml
을 삭제
I/O warning : failed to load external entity "wineet.xml"
을 나는 일식의 프로그램을 실행하고보다 저도 같은 오류가 발생합니다.
나는 wineet.xml
이 프로젝트의 루트에 있어야 함을 알고 있습니다.
.jar
을 Eclipse에서 만들었을 때 wineet.xml
은 프로젝트의 루트에 있습니다. cmd
에서
내 실행 명령은 다음과 같습니다
는java -Djna.library.path=C:\workspace_europe_32\StreamServePrintIER560\drivers -classpath "C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\streamserve_print.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jcl.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jcl2.3.0-RC3.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jna-3.2.7.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jpos.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jpos113_controls.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jsr80-1.0.1.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jstrs.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\jstrscs.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\log4j-1.2.17.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\mtlgjpos-1.0.0.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\slf4j.api-1.6.1.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\slf4j.log4j12_1.5.2.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\xerces.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\xercesImpl.jar;C:\workspace_europe_32\StreamServePrintIER560_streamserve_print\lib\xml-apis-1.4.01.jar" print.PrintBitmap1
사람은이 문제를 좀 도와 줄래?
들으
많이 Thx! 이제는 wineet.xml의 같은 디렉토리에서 명령을 실행할 때 작동합니다. – user3714328
좋습니다! 문제가 해결되면 대답을 선택하고 질문을 닫으십시오. – Gaurav