Dev_Tool/Eclipse
-
[Eclipse] Java프로젝트 jar로 생성후 실행하기Dev_Tool/Eclipse 2021. 6. 9. 12:43
1. 테스트 코드 작성 // jar실행 테스트 // jar 실행시 두가지 인자를 받아 출력해보자 public class JarTest { public static void main(String[] args) { System.out.println("# Jar파일 실행 테스트"); System.out.println("첫번째 인자 : " + args[0] ); System.out.println("두번째 인자 : " + args[1] ); } } 2. File → Export... 3. Export → Runnable JAR File 선택후 → Next클릭 4. Runnable → Browse... 클릭후 jar저장경로 선택 → Finish클릭 5. 나는 jar파일을 c드라이브 최상위에 두었다 cmd를 실행후 ..
-
[Eclipse] MyBatis Generator 플러그인Dev_Tool/Eclipse 2021. 5. 6. 17:29
0. MyBatis Generator?아래 공식페이지에도 설명되어있지만마이바티스에 필요한 파일들을자동으로 생성해주는 플러그인으로 보면된다 MyBatis Generator Core – Introduction to MyBatis GeneratorIntroduction to MyBatis Generator MyBatis Generator (MBG) is a code generator for MyBatis MyBatis. It will generate code for all versions of MyBatis. It will introspect a database table (or many tables) and will generate artifacts that can be used to accesmybatis..
-
[Eclipse] JRE 설정Dev_Tool/Eclipse 2021. 3. 16. 16:46
1. Window > Preferences > Java > Installed JREs > Edit...클릭 2. Window > Preferences > Java > Installed JREs > Edit...클릭 > Edit JRE > Directory..클릭 3. 원하는 버전의 jdk폴더안에 있는 jre폴더를 선택한다 4-1. 설정된 JRE경로를 확인한다 4-2. JRE name을 작성한다(아무렇게나 작성해도 상관없지만 해당버전을 표시해주는게 좋을거같다) 4-3. Finish를 눌러서 닫는다 5. 사용할 버전의 체크박스를 선택하고 Apply and Close를 눌러 닫는다