Page 2 of 2

Posted: Mon Jun 14, 2004 5:34 am
by antonycsf
you teach me a lot !! thank you very much!!

Posted: Tue Jun 15, 2004 2:00 am
by antonycsf
sorry !

I reinstall the redhat and install the sun j2sdk

and I get the error result :
--------------------------------------------
sh: line 1: java: command not found
--------------------------------------------

what should i do ????
thx!!

Posted: Tue Jun 15, 2004 2:10 am
by antonycsf

Code: Select all

<?php 

if(!defined('_DEBUG_')) define('_DEBUG_',1); 

if(_DEBUG_) 
{ 
header('Content-type: text/plain'); 

ini_set('display_errors','1'); 
error_reporting(E_ALL); 
} 
$filename = "HelloWorld.java"; 
$last = exec("/usr/java/j2sdk1.4.2_04/bin/javac $filename", $output); 

if(_DEBUG_) 
{ 
echo $last."\n"; 
print_r($output); 
} 

$last = exec("/usr/java/j2sdk1.4.2_04/bin/java HelloWorld",$output); 

if(_DEBUG_) 
{ 
echo $last."\n"; 
print_r($output); 
} 

?>

Posted: Tue Jun 15, 2004 2:11 am
by antonycsf
it works what happen ??
can anyone help me to solve it??