Blog: mkyong (Yong Mook Kim)


286 blogs updated: 38 min. ago
'javac' is not recognized as an internal or external command, operable program or batch file
A popular common error for new Java users. Terminal C:\Users\mkyong>javac 'javac' is not recognized as an internal or external command, oper...
3
17-04-2019 12:05:33 mkyong (Yong Mook Kim) Beginners
Java - Could not find or load main class
A popular error message for new Java users. Error: Could not find or load main class ClassName.class Caused by: java.lang.ClassNotFoundEx ce...
6
15-04-2019 12:32:40 mkyong (Yong Mook Kim) Beginners
Spring Boot - How to send email via SMTP
In this tutorial, we will show you how to send email via SMTP in Spring Boot. Technologies used : Spring Boot 2.1.2.RELEASE Spring 5.1.4.REL...
6
13-04-2019 19:38:57 mkyong (Yong Mook Kim) Beginners
Spring - Read file from resources folder
In Spring, we can use ClassPathResource or ResourceLoader to get files from classpath easily. P.S Tested with Spring 5.1.4.RELEASE 1. src/ma...
0
13-04-2019 12:50:02 mkyong (Yong Mook Kim) Beginners
Maven - source value 1.5 is obsolete and will be removed in a future release
In IntelliJ IDEA, Maven builds a project, and hits the following warning message? Warning:java: source value 1.5 is obsolete and will be rem...
6
12-04-2019 02:40:35 mkyong (Yong Mook Kim) Beginners
Java - How to read a file
In Java, there are few ways to read a file. 1. Java 8 Files.lines, it will return a Stream //@Since 1.8 Stream lines = Files.lines(Paths.get...
6
11-04-2019 19:52:17 mkyong (Yong Mook Kim) Beginners
Java - How to send Email
To send email in Java, we need JavaMail pom.xml com.sun.mail javax.mail 1.6.2 1. Send Email Send a normal email in text format. SendEmailSMT...
0
11-04-2019 12:59:40 mkyong (Yong Mook Kim) Beginners
Java - How to Iterate a HashMap
In Java, there are 3 ways to loop or iterate a HashMap 1. If possible, always uses the Java 8 forEach. Map map = new HashMap<>(); map.forEac...
4
10-04-2019 09:34:08 mkyong (Yong Mook Kim) Beginners
Java Files.readAllBytes example
In Java, we can use Files.readAllBytes to read a file. byte[] content = Files.readAllBytes(Paths. get("app.log")); System.out.println(new St...
6
10-04-2019 02:45:38 mkyong (Yong Mook Kim) Beginners
Java - How to append text to a file
In Java, we can use Files.write and StandardOpenOption.APPEND to append text to a file. try { // Create file if doesn't exist, write to it /...
6
09-04-2019 19:56:07 mkyong (Yong Mook Kim) Beginners


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.