JAVA- Send HTTP Get/Post Request and Read JSON response

This tutorial shows how to send HTTP Get Request using java and Read JSON response. To read json Response you will have to add java-jason.jar to class path. Send HTTP Get Request with Parameters. For testing I have signed UP with http://ipinfodb.com/ which gives the location of IP address for a get request with the …

Continue reading

recaptcha to download a file HTML

This tutorial shows how to integrate reCaptcha for download a file. This is HTML example and will work for all programming languages. Please note that this example will run in server after updating the site information in recaptcha site as shown in the youtube video. First get the site key from google recaptcha site. Please …

Continue reading

Get IP address Location of Client/User JAVA web project

This project shows how to take IP address of user in your Web Project. And you can use the IP address to predict the location where they are using. Update the Key after registering in the website https://ipinfodb.com/ Get_Location_From_IP.java package Modal; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; public class Get_Location_From_IP { public Location_Use_Bean get_ip_Details(String ip) …

Continue reading

Integrate login with Social Network using JAVA

All the popular Social Media login integration is shown in the pages below. It includes Facebook, Reddit, Google, Instagram and LinkedIn. Go through the below pages. All the source code is shared in corresponding pages. Login with Facebook. https://chillyfacts.com/integrate-login-with-facebook-using-java/ Login with Google. https://chillyfacts.com/integrate-login-with-google-in-websites-with-java/ Login with Reddit. https://chillyfacts.com/integrate-login-with-reddit-in-website-using-java/ Login with Instagram. https://chillyfacts.com/integrate-login-with-instagram-in-website-using-java/ Login with LinkedIn. https://chillyfacts.com/integrate-login-with-linkedin-in-website-using-java/

Continue reading

JSF MySQL CRUD Create Read Update Delete Project-JSF Tutorial Part 10

This tutorial shows a simple Create Read Update Delete project in Java Server Faces JSF. Mysql is used as database here and the IDE used is NetBeans Project structure in NetBeans Mysql Database Data DB_connection.java package com.chillyfacts.com; import java.sql.Connection; import java.sql.DriverManager; public class DB_connection { public static void main(String[] args) throws Exception{ DB_connection obj_DB_connection=new DB_connection(); …

Continue reading

java.lang.ClassNotFoundException: com.mysql.jdbc:Driver [Solved]

The Exception in Java Project is shown below. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at Simple.MyProg.main(MyProg.java:15) Solution, Download the Mysql Jar from below link. https://chillyfacts.com/mysql-connector-jar-download/ Add the jar to Classpath. Check the below link to add the Jar in …

Continue reading