note 42271 added to ref.java
| From: | colasphilippe at free dot fr | Date: | Mon, 10 May 2004 16:24:34 +0000 |
| Subject: | note 42271 added to ref.java | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69415@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/ref.java.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42271
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42271&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42271&report=yes
Search -- http://master.php.net/manage/user-notes.php