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













2024-07-24

Spring Boot build install failed with error: Unable to find a single main class from the following candidates.

 




Caused by: java.lang.IllegalStateException: Unable to find a single main class from the following candidates



For my case, resolved by Maven clean goal.

Should be causing by multiple @SpringBootApplication in target folder.



Run As > Maven clean




2024-07-22

Java SimpleDateTime pattern

 







yyyy-MM-dd'T'HH:mm:ss.SSSXXX
2024-07-22T13:26:31.934+08:00