Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problem running java program through php

  Asked By: Dora    Date: May 22    Category: Java    Views: 869
  

I have develop a java program for seria port communication. It is working fine
now I m supposed to run that program through php script. I have written the
script but it is not running.

my php script is

<?php

$temp = "/usr/local/super java /java/test";

exec($temp);

?>

I have done enteries in /super.tab as

java /java/bin/java apache u+g=root

also if I want to run my java program from any other directory other than the
parent directory of my program it do not work and give class not found
exception.

this happens even if i provide whole classpath along with path of my program
like

/root$ java -classpath /usr/java /usr/java/test

please help me out in sorting this problem

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on problem running java program through php Or get search suggestion and latest updates.




Tagged: