|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-03 20:37 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 12:00:01 2025 UTC |
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