-
자바파일 compile 방법.Back end/Java 기본 2024. 7. 1. 14:25
java 프로그램을 돌리는데 가끔 jar파일 컴파일이 안되어 컴파일 오류가 발생하는 경우가 있다.
아래 부분은 예시이다.
.java 파일 컴파일은 javac -cp .:jar파일 위치 경로 컴파일할 .java파일
ex) javac -cp :/home/park/tomcat9/webapps/jjm_test1b/WEB-INF/lib/EzIssuerJava.jar bcqre.java
.class 파일 컴파일은 java .:/jar파일 위치경로 컴파일할 .class파일
ex) java -cp .:/home/park/tomcat9/webapps/jjm_test1b/WEB-INF/lib/EzIssuerJava.jar bcqre'Back end > Java 기본' 카테고리의 다른 글
JNI 와 PURE JAVA? (0) 2024.06.26 Java 문제 (0) 2023.12.17 for문을 이용한 구구단 출력 (0) 2023.11.17 윤년 문제 (if문) (0) 2023.11.17 메소드 구조 예시 (0) 2023.11.17