Press enter to see results or esc to cancel.

Java program to send email using smtp

Download the project shown in youtube here, send_mail.rar Project Structure in Eclipse. This project uses jars activation-1.1.1.jaractivation-1.1.1.jar and mail-1.4.1.jar.mail-1.4.1.jar Send email using Gmail with Java program below Update the From email id,password and to email id with your email information. send_email_gmail.java package email; import java.util.*; import javax.mail.*; import javax.mail.PasswordAuthentication; import javax.mail.internet.*; public class send_email_gmail { …

Continue reading

Java program to connect to mysql database

This tutorial shows a Simple java program to connect to MySql database and do a basic select operation from the table. Project Structure in Ecllipse IDE. This project uses MySql Connector jar. You have to download it and add to class path. Download Mysql Connector jar here. DB_Connection.java package com.chillyfacts.com; import java.sql.Connection; import java.sql.DriverManager; public class …

Continue reading

How to download excel file from website- Java / Jsp

This JAVA Dynamic web project shows how to download Excel file from JSP file. The project Structure in Eclipse This program uses poi-3.9-20121203.jar. You can download it here poi-3.9-20121203. Add this jar to Classpath download_excel.jsp <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″<%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″    pageEncoding=”ISO-8859-1″%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head><meta …

Continue reading

Create LinkedIn Share button on Website Webpages Customized URL Method

This tutorial shows how to add a LinkedIn Share button using CustomizedURL Method. The complete documentation of this method is shown here, https://developer.linkedin.com/docs/share-on-linkedin Click the icon below to see the Sharer <a href=”https://www.linkedin.com/shareArticle?mini=true&url=http://chillyfacts.com/create-linkedin-share-button-on-website-webpages&title=Create LinkedIn Share button on Website Webpages&summary=chillyfacts.com&source=Chillyfacts” onclick=”window.open(this.href, ‘mywin’, ‘left=20,top=20,width=500,height=500,toolbar=1,resizable=0’); return false;” ><img src=”http://chillyfacts.com/wp-content/uploads/2017/06/LinkedIN.gif” alt=”” width=”54″ height=”20″ /></a> You can update the red …

Continue reading

Export excel java – How to write data into excel sheet using java

This JAVA program shows how to write to excel file. This program can generate .xls file from the program. It uses a External Jar file jxl.jar. You can download it here jxl.jar You have to add this to classpath Project Structure in Eclipse Write_to_excel_file_directly.java package com.chillyfacts.com; import java.io.File; import jxl.Workbook; import jxl.write.*; public class Write_to_excel_file_directly { …

Continue reading