Tag Archive For "JAVA"
note: previous implicit declaration of ‘point_forward’ was here [SOLVED]
In this video I have shown how you can solve ‘note: previous implicit declaration of ‘point_forward’ was here’ Also the issue ‘incompatible types when assigning to type’. As shown in the video, The error was thrown on compiling the code. #include “stdio.h” struct mystruct { int item1; int item2; }; void main() { struct …
Earn Money by adding captchas in websites
In this video I have shown how you can earn money by adding captchas in your website. In this example I have shown with JAVA JSP as my webpage. You can use the same method for any front end technologies. You can download the source code I have shown in the video here solvemedia.zip
How to open any File in Java
In this video, I have shown how you can open any type of file using java. Code is shown below. package test; import java.io.File; public class open_file { public static void main(String[] args) { String path = “E:\\jinu.txt”; File file = new File(path); try { if (file.exists()) { Process pro = Runtime.getRuntime().exec(“rundll32 url.dll,FileProtocolHandler ” …
Export MySQL Table in to CSV file using JAVA
In this video I have shown how you can export MySQL table into a CSV file. You will need to import MySQL jar file into class path of eclipse IDE to work on this program. You can download here, mysql-connector-java-5.1.42-bin.rar 1. Project Structure in Eclipse IDE. 2.Create_CSV.java package com.chillyfacts.com; import java.io.File; import java.io.PrintWriter; import java.sql.Connection; …
How to create CSV file using java
In this video I have shown how you can create a CSV file or Comma Separated Values file using java. The below source code is explained in the video, Create_CSV.java package com.chillyfacts.com; import java.io.File; import java.io.PrintWriter; public class Create_CSV { public static void main(String[] args) { try { PrintWriter pw= new PrintWriter(new File(“C:\\Users\\MIRITPC\\Desktop\\csv\\books_table.csv”)); StringBuilder sb=new …
JAVA send http Get Post request with basic authentication
In the video I have shown how you can send HTTP get request and Post request with a real time example. The server is giving response in JSON format. The JSON response is parsed with java to get the parameters output. This source code is demonstrated with reddit login API documents. You will have to …
Simple JAVA program to download Youtube vidoes
Using the below simple java program you can download Youtube videos. We have to download an executable exe file from below link or their website. Download youtube-dl here. youtube-dl.rar Download this exe file and keep in the folder where you need to have your downloaded videos. 1. Project Structure in Eclipse IDE. 2. my_main.java package …
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 …
Java – Generate PDF using Java Itextpdf, Mysql database dynamically
In this video I have shown how we can generate PDF with help if Itext pdf API, Also take value from MySQL database and generate PDF according to the data in MySQL database.
JAVA- Integrate login with Facebook using restfb API
In this video I have shown how you can integrate Login with facebook in web projects using restfb API. All the documentations are available in restfb.com documentation section. Here is the steps what you have to follow. 1. Login to facebook developers site and get an APP id by creating a facebook APP. 2. Grant …