faizulbari Posted February 2, 2007 Share Posted February 2, 2007 i am trying to integrate java and php so that i can call java functions from php. i googled it and found out avout javabridge i am using php/5.2.0 and Apache/2.0.59 & windows XP SP2 but i can't configure phpbridge to work correctly getting the error <<Fatal error: Class 'Java' not found in E:\wamp\www\hello.php on line 3>> help is urgently needed...... ??? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 2, 2007 Share Posted February 2, 2007 Its impossible to tell whats wrong, unless you tell us the third line! Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted February 2, 2007 Share Posted February 2, 2007 Okay, I think I know what may be wrong. What I did in the past was I connected my hosting company and asked them about this. They were very helpful and explained that some option wasn't enabled in the web hosting server. Try contacting them. It is possible there is something that is turned off or simply not possible to do. Quote Link to comment Share on other sites More sharing options...
faizulbari Posted February 2, 2007 Author Share Posted February 2, 2007 the 3rd line is: $system = new Java('java.lang.System'); and i am running the server on my own laptop so there is no one here to block anything Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted February 2, 2007 Share Posted February 2, 2007 from the look of that they are running it off there flash drive or something. usually E: is a flash port. but it may be a hard drive. so its not on the internet. try looking in hello.php on line three, because its saying that the class Java does not exist. So you are trying to create a new class Java which dosnt exist. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted February 2, 2007 Share Posted February 2, 2007 do you have any included files that contain the actual class java? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 2, 2007 Share Posted February 2, 2007 wow. You need to include the file which contains the Java class definition. There should be documentation for this program. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted February 2, 2007 Share Posted February 2, 2007 Javabridge links this page: http://www.dsl.uow.edu.au/~sk33/phpjava.htm for reference on setting up their "bridge" for Win32 systems. The very first line in the to-do list reads: So far, I still can't figure it out how to integrate PHP/Java Bridge with PHP 5.2. Your first post states: i am using php/5.2.0 and Apache/2.0.59 & windows XP SP2 Me thinks you should read the documentation Quote Link to comment Share on other sites More sharing options...
madhanmca81 Posted December 8, 2007 Share Posted December 8, 2007 hi , i solved this problem just set the java class path in your system and set the java bridge.jar path in your php.ini Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.