How to convert Java program into C program?

It is possible to convert a Java program into a C program, but it is extremely difficult for starters, you would need to follow some step by step:

i. JNI is a java program that can call the native C code. <jni.h> is the header file that provides the java program to C program mapping and it is easily available in JDK.

ii. <JavaToC.h> is the header file generated from the java source file.

Example:

#include<stdio.h>
#include<conio.h>
#include"JavaToC.h"
JNIEXPORT void JNICALL helloC(JNIEnv *env, jobject javaobj) 
{
	printf("Welcome to Webeduclick");
	return;
}

Output:

Welcome to Webeduclick