jarsigner adds a digital signature to the specified jarfile, or, if the -verify option is specified, it verifies the digital signature or signatures already attached to the JAR file. The specified signer is a case-insensitive nickname or alias for the entity whose signature is to be used. The specified signer name is used to look […]
Java
jlink: command not found
A new tool, called jlink was introduced in Java 9 that enables the creation of modular runtime images. These runtime images are nothing but a collection of a set of modules and their dependencies. A Java enhancement proposal, JEP 220, governs the structure of this runtime image. The JLink tool is designed to provide optional […]
JavaFX ComboBox: Set a value to the combo box
A list is a little more complicated, but also a lot more fun to work with, because using JavaFX there is a lot you can do with a list. The class that needs to be instantiated to create a list object is named ComboBox . This class is just one of a bigger family of […]
keytool error java.io.FileNotFoundException: (Access is denied)
keytool manages and manipulates a keystore, a repository for public and private keys and public key certificates. keytool defines various commands for generating keys, importing data into the keystore, and exporting and displaying keystore data. Keys and certificates are stored in a keystore using a case-insensitive name or alias. keytool uses this alias to refer […]
Java Date and Time
Java provides the Date class available in java.util package, this class encapsulates the current date and time. Date( ) – This constructor initializes the object with the current date and time. Date(long millisec) – This constructor accepts an argument that equals the number of milliseconds that have elapsed since midnight, January 1, 1970. Following are […]
Java – Networking
Java Networking is a concept of connecting two or more computing devices together so that we can share resources. The java.net package of the J2SE APIs contains a collection of classes and interfaces that provide the low-level communication details. Java socket programming provides facility to share data between different computing devices. The java.net package provides […]
Java – Documentation Comments
The Java language supports three types of comments: /* text */ – The compiler ignores everything from /* to */. //text – The compiler ignores everything from // to the end of the line. /** documentation */ – This is a documentation comment and in general its called doc comment. The JDK javadoc tool uses […]
Java Applet Basics
An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at its disposal. The applet is a special type of program that is embedded in the webpage to generate dynamic content. It runs inside the browser and […]
Java – Multithreading
Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such a program is called a thread. Multitasking is when multiple processes share common processing resources such as a CPU. Each of the threads can run in parallel. The OS […]
Java – Sending Email
To send an e-mail using your Java Application is simple enough but to start with you should have JavaMail API and Java Activation Framework (JAF) installed on your machine. Download and unzip these files, in the newly created top-level directories, you will find a number of jar files for both applications. You need to add […]