2024-10-29

Spring Boot 2 to 3

 

JPA

"Auditable"

with @MappedSuperclass

Fixed by 

replace package:
javax.persistence

by package:
jakarta.persistence







2024-10-18

Maven build script JDK version error

 
Issue:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tn-hp-inc-gts-e4h-ws-keycloak-sample: Compilation failure
[ERROR] /C:/[Project]/SpringBootApplication.java:[4,32] cannot access org.springframework.boot.SpringApplication
[ERROR]   bad class file: [.m2]\repository\org\springframework\boot\spring-boot\3.3.1\spring-boot-3.3.1.jar(org/springframework/boot/SpringApplication.class)
[ERROR]     class file has wrong version 61.0, should be 52.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.





Resolved by configured to Execution Environment.
Instead of Alternate JRE from reference URL, as if project been shared by a team via Git/SVN, which develop at different environments.








Reference URL:



If running from Eclipse (e.g. Maven commands), you need to be using the right JDK version for Run As -> Maven. Ensure that your JRE version is selected appropriately under the JRE tab:









Maven structure - year '22

 Maven structure


https://stackoverflow.com/questions/73652655/microservices-and-maven-structure








2024-10-15

Eclipse Version: 2024-09 (4.33.0) - Downloading external resources is disabled

 


Downloading external resources is disabled. pom.xml /your-project line 3 Language Servers

Solved by below:

https://stackoverflow.com/a/77973991











2024-10-09

Backup WiFi

 




Reference URL : https://winaero.com/backup-and-restore-wireless-network-profiles-in-windows-10/

Backup

mkdir C:\Billson\WiFi
netsh wlan export profile key=clear folder=C:\Billson\WiFi

Restore

Please refer to the URL above








Processes/Files that locking USB external HDD to be ejected and safely removed from laptop.

 




Image PID Type Handle Name
svchost.exe (LocalSystemNetworkRestricted -p) 18036 File D:\System Volume Information\tracking.log
svchost.exe (LocalSystemNetworkRestricted -p) 18036 File D:\$Extend\$ObjId:$O:$INDEX_ALLOCATION

20241009T125929+0800






2024-10-04

Eclipse Java Maven Project doesn't download Maven Dependencies

 

Run As > Maven Install

To trigger Eclipse download Maven Project Dependencies.















2024-07-25

Java - Error: Unable to access jarfile

 


Error: Unable to access jarfile


changed
from java -jar abc.jar com.test.Main
to java -cp abc.jar com.test.Main













Google Referrals