mercredi 25 février 2015

I want to run a java class from a php script and return the result back to the php page


Vote count:

0




I have a simple Hello World java program written in Netbeans 6.7.1 Here it is:



package javaapplication2;

public class NewClass {

public static void main(String[] args)
{
System.out.println("Hello World");
}
}


I want to create a php file which executes this code on the click of a button, and returns the output to the php page.


Can someone please post the exact php code and also tell me where to make any changes in any settings for this to run.


Settings could be any regarding the netbeans configurations or anything. But the code should work. Please help.



asked 59 secs ago







I want to run a java class from a php script and return the result back to the php page

Aucun commentaire:

Enregistrer un commentaire