Tag Archive For "JAVA"
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 …
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 …
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 { …
Java read xls- Read data from Java excel API JAVA
This Java program shows how to read Excel file. Please note that this program will read only .xls file and will not read .xlsx file. You can convert a .xlsx to .xls by clicking Save As and select the Save as type ‘Excel 97-2003 Workbook (*.xls)’. This program uses poi-3.9-20121203.jar. You can download it here poi-3.9-20121203. …
Java OCR Web Project – Tesseract Optical Character Recoginition(OCR)
This tutorial shows JAVA program which can be used to convert Image To Text pragmatically. First you have to install ‘tesseract-ocr-setup-3.02.02.exe’ in the location C:\Tesseract-OCR for this example. Project Structure in Eclipse You can update the location you installed the OCR here and the local host server information. Common_Things.java package common_things; public class Common_Things { public static String …
Check an email exist using JAVA- Java email verification and validation
This tutorial shows how to check an email exist using JAVA. This program works with the principle of Mail Exchange(MX) look up. Detailed documentation is shown in this page here. I cannot assure you the efficiency of this code. The result of the test will depend on the domain of emails since some domains will not …
Add reCaptcha I m not a robot in JAVA websites
This tutorial shows how to add reCaptcha I m not robot in Websites using Servlet in JAVA and JSON. First login to google and go to the link https://www.google.com/recaptcha/admin#list You can see the Register a new site form as below. 2.1 Fill any Label 2.1 Enter your host name, Now I am giving domain name …
Create Facebook Share button for Website Webpages
This tutorial helps to create facebook share button in Webpage. 1. Just include the following code in your Webpage to include web page sharer. You can update the code with your link inside and create it for your webpage. 1.1 Button Count Type <iframe src=”https://www.facebook.com/plugins/share_button.php?href=https://chillyfacts.com/create-facebook-share-button-for-website-webpages/&layout=button_count&size=large&mobile_iframe=true&width=83&height=28&appId” width=”83″ height=”28″ style=”border:none;overflow:hidden” scrolling=”no” frameborder=”0″ allowTransparency=”true”></iframe> 1.2 Box Count Type …
Integrate login with Facebook using JAVA
This tutorial helps you to integrate Facebook login in Java websites with the help of JAVASCRIPT. This is the simplest way I have found to do it. First register in https://developers.facebook.com/ and get the app ID for your APP. 1.1 Login first to the Developer site with your facebook ID and Click on Add a New App …
Integrate login with google in Websites with JAVA
This tutorial helps you to integrate login with Google in JAVA websites. This works with the principle of oAuth2. Here is the step by step process for that, Login to the Google console API https://console.developers.google.com/apis/library Get the Client ID and Client secret, For that 1.1 After Login in Click on Credentials 1.2 Then Click on Create …