|
From: <php...@li...> - 2008-06-10 12:39:42
|
Hi,
i've got one stupid problem that could surely be resolved very easyly
but I have no clue about the source of this problem. I compiled the
java.so extension and loaded it. The output of phpinfo() shows that
the extension is loaded properly and running. The test.php works fine
but it uses java/Java.inc. I want to use the extension itself but
everything I try failes with "Fatal error: Class 'Java' not found....".
But I thougt this class Java is provided by the extension so that it
can be called without including Java.inc?! What is the problem?
This is one of the many example lines I tried to execute:
$string = new Java("java.lang.String");
Thank you in advance.
felix
|
|
From: <php...@li...> - 2008-06-10 13:28:58
|
Hi,
> But I thougt this class Java is provided by the extension
No, java.so doesn't contain a Java class. It only starts a Java VM as a sub process of the Apache or IIS Web-Server.
If you want to access the Java process, you need to use some Java class definition.
Please see our FAQ for details.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-10 14:27:48
|
Ow my goodness! Never thought that the answer to my question can be found in the FAQ. Thank you so much! But now I am even more confused. I read that i can use the php/Java bridge without using the php-extension. The text said that i only have to include java/Java.inc and it works without extension (so it does!). But what is the difference by using the extension? Does this included code automatically detect the installed extension and use ist? I am sorry for my maybe dumb questions but i read over 5 different articles about the bridge and every article provides totally different information. felix > __________________________________________________________ > Gesendet von Yahoo! Mail. > Dem pfiffigeren Posteingang. > http://de.overview.mail.yahoo.com > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2008-06-10 15:57:22
|
Hi Felix,
sorry for being overly terse. But the PHP/Java Bridge is complete as it is. Instead of adding more features I'd like to remove features which are confusing or not commonly used.
> But what is the difference by using the extension?
It's a dummy, used for backward compatibility only. People expect a PHP java extension, so we provide one which doesn't do anything useful.
> I am sorry for my maybe dumb questions but i read over 5
> different articles about the bridge and every article provides
> totally different information.
Yes. Most of the information you find on the internet are outdated, simply false or at least misleading.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-11 11:33:32
|
> sorry for being overly terse. No problem ;-) > It's a dummy, used for backward compatibility only. People expect a > PHP java extension, so we provide one which doesn't do anything > useful. Well, this sounds for me like a bad april fool. So all (current) articles that describe the use of the extension are just crap? well, good to know. so i have to rewrite a part of my chapter (diploma thesis) about the bridge :( Ok, so all that is needed, is the java/Java.inc stuff an VM and the JavaBridge.jar ... or if i use the j2ee-version i need the java/Java.inc stuff and the war-file. Is that right? The implementation of the Java class just communicates with the javabridge-servlet by using the bridge protocol and that's all the magic? sounds easy but you and i know...it's great work. Please tell me if my understanding of the way the bridge works is wrong. At the moment i am pretty confused by all the wrong information. Thank you for your help, have a nice day, Felix |
|
From: <php...@li...> - 2008-06-11 15:13:20
|
Hi Felix,
[java.so for backward compatibility]
> Well, this sounds for me like a bad april fool.
Bear in mind that I have written the PHP/Java Bridge in 2003. PHP 4 didn't have the functionality required to access Java, so a piece of glue code called "java.so" was necessary.
> So all
> (current)
> articles that describe the use of the extension are just
> crap?
I don't think so. -- If you find a bug in our documentation, please file a bug report.
> Ok, so all that is needed, is the [...] java/Java.inc stuff and
> the war-file.
Yes. You copy the JavaBridge.war to the J2EE server or Tomcat, wait one second until the JavaBridge directory appears, and then copy the JavaBridge directory over to the HTTP server document root.
You don't need to use our Java class implementation, if you don't want to. Please see our FAQ to see another Java class definition which fits into one (long) line.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-12 10:55:37
|
Hello Jost, thank you very much for your very helpful answer. I am really happy about the fact that i understood the way the bridge is working. in fact it is not hard to understand but the lots of wrong articles made it hard to me ;-) > If you find a bug in our documentation, please file a bug report. no, i did not want to say that your doc is buggy. I meant the other articles, e.g. from phpmagazin and other sources. But i looked again on your page and found nowhere the hint that the extension is not needed anymore. So it is confusing. thank you again for your great endurance and your great work .... best regards, felix |
|
From: <php...@li...> - 2008-07-07 09:59:18
|
Hello, first of all this thread discovered some new stuff again for me as well :-> php...@li... schrieb: > Hi Felix, > > [java.so for backward compatibility] >> Well, this sounds for me like a bad april fool. > > Bear in mind that I have written the PHP/Java Bridge in 2003. PHP 4 > didn't have the functionality required to access Java, so a piece of > glue code called "java.so" was necessary. If it was needed only back then, why is it still part of 'make install', 'install.sh'? I assume the only purpose of 'java.so' now is to enable the httpd(apache) to start a JVM as child, which could serve as a backend for the php-java-bridge? >> So all (current) articles that describe the use of the extension >> are just crap? > > I don't think so. -- If you find a bug in our documentation, please > file a bug report. 'INSTALL.LINUX' from CVS says: <quote>The "java.so" file contained in the Linux binary packages is the PHP "Java.inc" compiled to native code</quote> So,that's not true anymore, is it? Thx and greets, Peter |
|
From: <php...@li...> - 2008-07-07 10:27:50
|
Hi,
we keep the C wrapper because some distributions use it. If you have questions regarding the distribution packages, please contact the distributor.
> If it was needed only back then, why is it still part of 'make install',
> 'install.sh'?
It's for backward compatibility.
> 'INSTALL.LINUX' from CVS says:
Ah, I see. The latest INSTALL.LINUX file is in the binary download. I will check it in, if I have some time.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|