Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 489 Bytes

jshell-import-jar.md

File metadata and controls

15 lines (10 loc) · 489 Bytes

Import External Library in JShell

jshell> /env --class-path C:\Users\ghays\.m2\repository\javax\mail\mail\1.4.7\mail-1.4.7.jar
|  Setting new options and restoring state.

jshell> import javax.mail.internet.InternetAddress

jshell> InternetAddress from = new InternetAddress("til@acme.org");
from ==> til@acme.org

References

  1. How to import external libraries in JShell in Java 9?