note 42271 rejected from ref.java by nlopess
| From: | nlopess@php.net | Date: | Mon, 10 May 2004 18:12:08 +0000 |
| Subject: | note 42271 rejected from ref.java by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69427@lists.php.net to get a copy of this message | ||
Note Submitter: colasphilippe@free.fr
----
Hi,
I have a matter with the interaction beetween PHP and Java,
I try to implement a class JAVA in my PHP source and I obtain [Warning: Unknown list entry type in
request shutdown (0) in Unknown on line 0]
Why this warning and how to avoid this one.
If I refresh a few times I obtain [Fatal error: Unable to create Java Virtual Machine in test.php on
line 2]
Here is my PHP source :
<?php
$syst=new Java("test");
$nom=(string) "Hello";
$syst->setNom($nom);
print $syst->getNom();
?>
and here is my JAVA source :
public class test{
private String nom = "";
public test(String nom){
this.nom = nom;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
}
I need some help, cause I have an hard project to managed with this type of implementation.
Thanks for Help.