Dev_Tool/Eclipse 9

[Eclipse] Java프로젝트를 jar로 빌드하고 exe로 만드는법

1. Launch4j 설치하기( jar를 exe로 만들어주는 프로그램 )https://launch4j.sourceforge.net/접속한뒤 Download메뉴를 눌러준다들어가면 다운로드 페이지로 이동된다https://sourceforge.net/projects/launch4j/files/launch4j-3/3.50/본인 OS가 윈도우면 초록버튼을 눌러서 받아준다받아서 설치하는과정은 간단하니까 생략2. 이클립스에서 jar를 만드는법2-1. 프로젝트 우클릭 > Export 클릭2-2.검색칸에 jar를 치고 Runnable JAR File을 선택한뒤 Next클릭2-3. Browse버튼을 눌러서 jar파일을 만들 경로를 먼저 정해준뒤Library handling 영역에서⚫Package required libra..

Dev_Tool/Eclipse 2024.11.18

[Eclipse] Must declare a named package because this compilation unit is associated to the named module

[ Problem ] Java프로젝트 생성후 기본패키지에 Class파일 생성하면 다음과 같은 에러가 발생 [ Error Log ] Error occurred during initialization of boot layer java.lang.module.FindException: Error reading module: Caused by: java.lang.module.InvalidModuleDescriptorException: found in top-level directory (unnamed package not allowed in module) [ Solution ] 해결 방법은 프로젝트에 자동생성된 module-info.java 파일을 삭제해주면 된다 Java프로젝트 생성시 만들어지지 않게 하려면 M..

Dev_Tool/Eclipse 2022.12.20

[Eclipse] Java프로젝트 jar로 생성후 실행하기

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를 실행후 ..

Dev_Tool/Eclipse 2021.06.09

[Eclipse] MyBatis Generator 플러그인

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..

Dev_Tool/Eclipse 2021.05.06

[Eclipse] JRE 설정

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를 눌러 닫는다

Dev_Tool/Eclipse 2021.03.16

[Eclipse] IndentGuide 플러그인

1. Help > Install New Software... 클릭 2. Add... 클릭 3. Name, Location을 작성후 Add 클릭 Name : 플러그인 별칭을 작성 ( 아무렇게나 입력해도 상관없음 ) Location : http://kiritsuku.github.io/IndentGuide/update/ 4. 체크박스를 선택후 Next클릭 5. Finish클릭 6. Install anyway클릭 7. Restart Now클릭 8. 이클립스 재시작후 적용완료 9. IndentGuide 세부 설정하기 Window > Preferences > General > Editors > Text Editors > Indent Guide ✔ 플러그인 설치해도 적용되지 않는 경우 -아래 첨부된 파일( jp.so..

Dev_Tool/Eclipse 2021.03.03

[Eclipse] UTF-8 설정

✔ 이미 다른 인코딩 방식으로 생성된 프로젝트 or 파일의 경우 인코딩을 변경하면 한글이 깨지므로 주의 1. Window > Preferences > General > Content Types Java Class File 선택 > Default encoding을 UTF-8로 작성 > Update 클릭 2. Window > Preferences > General > Content Types Text 선택 > Default encoding을 UTF-8로 작성 > Update 클릭 3. Window > Preferences > General > Workspace Text file encoding > Other선택후 UTF-8작성 > Apply 클릭 4. Window > Preferences > General ..

Dev_Tool/Eclipse 2021.03.03
728x90
반응형