본문 바로가기

개발/Java

(17)
[Swing] 윈도우 탐색기 또는 커맨드(cmd.exe) 실행하는 방법 JAVA/Swing 환경에서 윈도우 탐색기 또는 커맨드창을 실행하면 유용할 것 같아 devcode-stuio JavaProperties 내용을 조회하는 기능에 적용하였다. devcode-studio - https://github.com/wyleedp/devcode/tree/develop/devcode-studio 윈도우 파일탐색기 명령어 # C:\Windows\explorer.exe /e/root/select, C:\Windows\explorer.exe /e/root/select,c:\Windows 윈도우 커맨드창 실행 명령어 # C:\Windows\system32\cmd.exe /C start "" /D "" C:\Windows\system32\cmd.exe /C start "C:\Users\wylee..
[maven] package 수행시 Fatal error compiling 에러발생 파이어볼(https://github.com/joosing/fireball)이라는 오픈소스를 실행하려고 하다 mvn clean package 시 에러발생 [INFO] Compiling 98 source files to C:\Users\wylee\GitHub-SourceTest\fireball\target\classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.027 s [INFO] Finis..
Apache POI를 이용한 워드파일(.docx) 생성방법 실제 프로젝트를 진행하다 보면 MS워드파일을 생성해야 하는 경우가 발생한다. 이때 사용하는 라이브러리가 Apache POI 이며 2023년 11월 7일 기준으로 최신버전은 5.2.4 버전이다. Apache POI - https://poi.apache.org/
[Java] Office365를 이용한 메일발송시 javax.mail.AuthenticationFailedException 발생 O365(Office365) 를 이용하여 메일발송시 javax.mail.AuthenticationFailedException 발생되면서 메일발송이 불가능하다. Start >>> javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [xxx.xxx.PROD.OUTLOOK.COM 2023-03-02T06:27:12.612Z ...]
javax.mail를 이용한 메일발송시 java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger 에러발생 jdk11 - javax.mail 라이브러리를 이용하여 메일발송시 java.lang.NoClassDefFoundError 발생 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger at javax.mail.Session.initLogger(Session.java:283) at javax.mail.Session.(Session.java:268) at javax.mail.Session.getInstance(Session.java:304) at cinos.devcode.SendMailO365.exec(SendMailO365.java:25) at cinos.devcode.SendMailO365.main(Sen..
slf4j와 log4j2 연동시 Unexpected problem occured during version sanity check 에러발생 slf4j와 log4j2 연동시 Unexpected problem occured during version sanity check 에러발생 Unexpected problem occured during version sanity check Reported exception: java.lang.AbstractMethodError: Receiver class org.apache.logging.slf4j.SLF4JServiceProvider does not define or inherit an implementation of the resolved method abstract getRequestedApiVersion()Ljava/lang/String; of interface org.slf4j.spi.SLF4JS..
MooInfo - OSHI를 이용한 JavaSwing기반의 OS 모니터링 Application MooInfo OSHI, FlatLaf(JAVA Swing Look And Feel), JFreeChart를 이용한 OS 하드웨어 정보 및 모니터링 Application 공식사이트 : https://rememberber.github.io/MooInfo/ GitHub : https://github.com/rememberber/MooInfo 2022년 11월 11일(금) 기준으로 현재버전은 1.1.2 Releases · rememberber/MooInfo (github.com) 에서 다운받아 설치가능하며 윈도우, 리눅스, MacOS를 지원한다. Overview, Detail, Memory, CPU, Storage, Network, Variables, Processes, USB Devices, Power - ..
dextupload 이미지업로드 플러그인 사용시 java.lang.IllegalArgumentException: input == null! 발생 개발환경 JDK 11 dextuploaddng-2.4.2.jar dextupload 이미지 플러그인 사용시 정확히 알 수 없는 input == null! Exception 이 발생한다. File file = new File("C:\Temp\ImageFile.png"); ImageTool img = ImageTool.getInstance(file); ImageTool Class : devpia.dextuploadnj.media.ImageTool 2022-04-13 11:24:14.204 ERROR 13472 --- [nio-8080-exec-4] FileUtil : Exception java.lang.IllegalArgumentException: input == null! at java.desktop/ja..