#48466 [Opn->Bgs]: I'm trying to link PHP with Java, but then it doesn't see the Java classes.

From: Date: Wed, 03 Jun 2009 20:37:57 +0000
Subject: #48466 [Opn->Bgs]: I'm trying to link PHP with Java, but then it doesn't see the Java classes.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138022@lists.php.net to get a copy of this message
 ID:               48466
 Updated by:       jani@php.net
 Reported By:      jabujerry at tuks dot co dot za
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Wind XP Prof Ser Pack 2
 PHP Version:      5.2.9
 New Comment:

Please report bugs in PECL extensions at right place: 
http://pecl.php.net/bugs/


Previous Comments:
------------------------------------------------------------------------

[2009-06-03 18:30:17] jabujerry at tuks dot co dot za

Description:
------------
This is what it says:

Fatal error: Call to undefined function java_require() in
E:\wamp\www\test\helloworld.php in line 2

And I'm sure I've configured everything correctly what might be the
problem?

Your help will be highly appreciated

Reproduce code:
---------------
helloworld.php

<?php
java_require('http://localhost/test/HelloWorld.jar');
$myObj = new Java('HelloWorld');
// display Hello World
echo (String) $myObj->getHelloWorld();
?>

HelloWorld.java

public class HelloWorld {
	String hw = "Hello World";
	public String getHelloWorld() {
		return hw;
	}
}




Expected result:
----------------
Hello World

Actual result:
--------------
Fatal error: Call to undefined function java_require() in
E:\wamp\www\test\helloworld.php in line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48466&edit=1



Thread (2 messages)

« previous php.bugs (#138022) next »