Read Outlook .msg file using JAVA

In this video I have shown how you can read .msg file using java. This example is shown in Eclipse IDE. 1. Project Structure. 2. 3 Jar files are required for this project. These jar files should be added to class path of the project. poi-scratchpad-3.9.jar msgparser-1.1.15.jar poi-3.9.jar 3. Read_MSG.java package com.chillyfacts.com; import java.util.Iterator; import …

Continue reading

Java JSP Javascript – Submit form without reloading page

In this video I have shown how to submit a form from a JSP page without refreshing the page. This is purely on Javascript and will work on any HTML supported platforms like PHP, .Net etc. This project is demonstrated in Eclipse IDE with Tomcat server. 1. Project Structure in Eclipse IDE. 2. index.jsp holds …

Continue reading

Simple java program code to convert Image to Text

You can convert any image file to text by Optical Character Recognition using the below java program. The API we are using here is the Tesseract OCR which is free licensed. Before running the below program you have to download and install Tesseract in your PC. Visit the below link to get the installation file, …

Continue reading

How to add Responsive google Map in Webpage

In the video I have shown how you can integrate a responsive google map in web page. Source code. <style> .google-maps { position: relative; padding-bottom: 75%; // This is the aspect ratio height: 0; overflow: hidden; } .google-maps iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; } </style> <div …

Continue reading

How to generate QR code with Image using JAVA

In this video I have shown how you can create a QR Code with logo in side the QR. We are using 2 jar files which should be added in ClassPath to create the QR file. The jars are, 1 . javase-2.2.jar 2 . zxing-core-2.0.jar QR_Generate.java package com.chillyfacts.com; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import …

Continue reading

Get GEO Location Coordinates of User

In this video I have shown how you can get the GEO Location Coordinates of the user using simple java script code. <!DOCTYPE html> <html> <body onload=”getLocation()”> <p>Your Location Details are Shown Below.</p> <p id=”demo”></p> <script> var x = document.getElementById(“demo”); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = “Geolocation is not …

Continue reading

JAVA JSP file upload example source code

In this video I have shown how you can create a JSP file upload. This project is shown in Eclipse IDE. 1. Project Structure 2. The jar file used in the project are, 1.org.apache.commons.io.jar 2.commons-fileupload-1.3.1.jar 3. The servlet will upload the image to d:\uploaded_files folder FileUploadHandler.java package com.chilyfacts.com; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import …

Continue reading

Java Simple Hello World Program in Eclipse

Hello World program in Eclipse Example. Follow the below steps, Go to File > New > Java project Project Structure HelloWorld.java package com.chillyfacts.com; public class HelloWorld { public static void main(String[] args){ System.out.print(“Hello World!!”); } } Out put in console Hello World!! Download the project here, HelloWorld.rar

Continue reading

How to Create PDF dynamically with Images using JAVA

In this video tutorial I have shown how you can generate PDF using JAVA. This project need the jar itextpdf-5.1.0 jar to be added in Class path Project Structure Code to create simple PDF File Create_PDF.java package com.chillyfacts.com; import java.io.File; import java.io.FileOutputStream; import com.itextpdf.text.*; import com.itextpdf.text.pdf.PdfWriter; public class Create_PDF { public static void main(String[] args) …

Continue reading