Tag Archive For "program"
Convert Java Object into JSON and JSON into Java Object | Jackson API
In this video I have shown how to parse JSON Object to a JAVA Object using JACKSON API. Project Structure, In this project we use 2 jars, 1. com.fasterxml.jackson.core.jar 2. com.fasterxml.jackson.databind.jar Add these jars to build path of Project For testing we have registered with website http://api.ipinfodb.com. After registering we will get the API Key.This …
Java-Send JSON Request and Read JSON Response
In this video I have shown how to Send a JSON Post request using JAVA and Parse the Response using JAVA. For testing we are using the Open web service from this website https://gurujsonrpc.appspot.com. In this project we are using 2 jars, 1. java-json.jar 2. org.apache.commons.io.jar Post_JSON.java package com.chillyfacts.com; import java.io.BufferedInputStream; import java.io.InputStream; import java.io.OutputStream; …
Generate Barcodes Dynamically Using JAVA
In this video I have shown how to create Barcodes in Image and PDF dynamically using JAVA. Project Structure In this project 3 jars are used, 1. barcode4j.jar 2. itextpdf-5.1.0.jar 3. Mysql connector jar Barcode_Image.java package BARCODE; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import org.krysalis.barcode4j.impl.code128.Code128Bean; import org.krysalis.barcode4j.output.bitmap.BitmapCanvasProvider; public class Barcode_Image { public static void main(String[] …
Java JSP MySql CRUD Project
In this video tutorial series I have shown how to create Create Read Update Delete (CRUD) in Java Server Pages(JSP). Project Structure in Eclipse DB_Connection.java package common; import java.sql.Connection; import java.sql.DriverManager; public class DB_Connection { public static void main(String[] args) { DB_Connection obj_DB_Connection=new DB_Connection(); System.out.println(obj_DB_Connection.get_connection()); } public Connection get_connection(){ Connection connection=null; try { Class.forName(“com.mysql.jdbc.Driver”); connection …
How to create or read TXT / NotePad File using JAVA
In this video I have shown how to create and read text or Notepad file using java. Create java Text file, Update the path of output file as per your need. Write_TXT_File.java package chillyfacts.com; import java.io.PrintWriter; public class Write_TXT_File { public static void main(String[] args) { PrintWriter writer; try { writer = new PrintWriter(“C:\\Users\\MIRITPC\\Desktop\\jas\\test1.txt”, “UTF-8”); …
ZIP or UnZip files or folder using java
In this video I have demonstrated, 1. How to Zip/Compress a file. 2. How to Zip/Compress a Folder. 3. How to Unzip/Decompress file or folder. You can Zip a file using below code. Update the path of file and destination as per your need. Zip_File_Test.java package ZIP; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.ZipEntry; …
JAVA-Send URL HTTP Request and Read XML Response
In the below code I have shown how to read XML response after sending HTTP URL request using JAVA. For testing we have used Google Maps TimeZone API which returns XML response with the time zone of requested Coordinates. Get the API key and documentation from the below link. https://developers.google.com/maps/documentation/timezone/start Test_HTTP_XML.java package XML_TEST; import java.io.BufferedReader; …
Java Jsp MySql login Project Source Code
Java Jsp MySql login Project Source Code Download In the video series I have shown step by step how to create a JAVA JSP login Project. Java Jsp MySql login Project Part 1 https://www.youtube.com/watch?v=rC1kZewgb94 JSP login Form – Java Jsp MySql login Project Part 2 https://www.youtube.com/watch?v=Y1lOQ6mEixA Configuring Sign In Controller Java Jsp MySql login Project …
JAVA-Send URL HTTP Request and Read JSON Response
In this video I have shown how to send a URL HTTP request using JAVA. For testing I used a site http://fixer.io/ through which we can send URL request and get JSON response of current currency rate. To read json Response you will have to add java-jason.jar to class path. 1. The JSON Response through …
Free Library Management System project in Java and Mysql Source Code
This project is deployed with help of, Eclipse Neon.3 MySQL 5.0 Tomcat v9.0 Its not necessary to have all the above with exact versions. You can have any versions. Project Sturture Update the url in Common_Things.java with project link, Take care on the port number also. Put it as per your tomcat server port number. …