|
From: <php...@li...> - 2008-02-21 15:20:44
|
Hi, > I'm trying to install the java-bridge 5.1.0, but it won't work, what exactly doesn't work. > I've searched google for abaout two days, Have you looked at the PHP/Java Bridge documentation? From the INSTALL.J2EE document: 1. Install Tomcat 2. Copy JavaBridge.war [1] to tomcat/webapps, wait until webapps/JavaBridge appears 3. Copy the JavaBridge directory to apache. 4. Browse to http://yourHost.com/JavaBridge and run the supplied examples. [1] or rename JavaBridge.war to myPhpWebApplication.war, if appropriate. > there are many manuals but non of them worked, really frustrating... :o) The only manual I know of is the INSTALL.J2EE document contained in the download archive, which contains the above information. If that is confusing or misleading, please file a bug report. Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
|
From: <php...@li...> - 2008-02-25 08:24:46
|
Good Morning, Thanks for your answer, Mr. Boekemeier. Yes, I' read that one, too... :o) My Problem is, I don't want to use tomcat, I thought I'm able to use the Javabridge just with apache, too... Right? No, installing the bridge in combination with tomcat should be no problem, but as already said, I have to use it without... :o) Is there any possiblitity? Greeting from Germany, Matthias |
|
From: <php...@li...> - 2008-02-25 09:23:16
|
Hi,
> My Problem is, I don't want to use tomcat,
Well, you can use any servlet engine or J2EE server to run Java.
> I thought I'm able to use the Javabridge just with apache
Yes. All you need to do is to copy the JavaBridge directory created from the J2EE server
or servlet engine to the Apache htdocs directory.
> problem, but as already said, I have to use it without... :o)
I don't see any way to run Java libraries without actually running Java... That said, the Linux
binaries have been compiled to native code, they don't use any Java.
But IF you want to use Java, you don't have a choice; you need to start the Java VM.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-25 09:55:44
|
Dear Mr. Boekemeier, Ok, that sounds fine :o) I'think the problem is not the bridge itself, it's me who's the one... *smile* I'm total new in this sector and don't know anything about java... :o( I don't know whar you mean by "All you need to do is to copy the JavaBridge directory created from the J2EE server or servlet engine to the Apache htdocs directory " JavaBridge directory created from the J2EE server? Which one, is it in the compressed downloadable folder, or do I have to install it on my own??? My local system: Win XP Apache 2.0.59 (C:\Program Files\Apache Group\Apache2) PHP 5.1.6 (C:\php) An WWW-Folder for the files (C:\WWW) And I downloaded all the bridges which are available on sourceforge.net (Version 4.1.8 --> 5.1.2) So what do I have to do next??? THANKS A LOT FOR YOUR PATIENCE!!!! If the bridge is working I write a documentation in English (and German) for those who have the same problems, I guess, that won't be to much people, but if just one is searching and helped, it was worthwhile... :o) Sorry for my "stupid" questions, but the one who's not asking, is the one who can't win... *smile* Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 11:45:56
|
Hi,
> I'm total new in this sector and don't know anything about java... :o(
a Java servlet engine or J2EE application server define an operating environment which allows
one to run Java (web-) applications. The JavaBridge.war is such an application.
> JavaBridge directory created from the J2EE server? Which one, is it in
> the compressed downloadable folder
The php-java-bridge download archive contains a JavaBridge.war, which is a standard Java (web-)
application.
In order to access Java libraries from within Apache or PHP CLI (standalone), you need to run
Java somewhere. The easiest way to do this is to install a J2EE server or servlet engine and to
copy JavaBridge.war into its autodeploy folder.
>
> My local system:
> Win XP
> Apache 2.0.59 (C:\Program Files\Apache Group\Apache2)
> PHP 5.1.6 (C:\php)
> An WWW-Folder for the files (C:\WWW)
> So what do I have to do next???
1.) Install tomcat.
2.) Deploy JavaBridge.war
3.) Copy the created JavaBridge folder to C:\WWW
Regards,
Jost Boekemeier
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-25 12:15:29
|
Hi there, Thanks again fort he quick answering... 1.) Install tomcat. --> I'd like to use it without tomcat, I think you said, this would be possible, right? And that's my problem, cause I don't use tomcat, I have no autodeploy folder... ;o) Am I the only person, wanting to use it without tomcat??? I'm confused... ;o) Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 12:25:41
|
Hi,
> 1.) Install tomcat.
>
> --> I'd like to use it without tomcat,
there are certainly other ways to run a Java VM. -- In fact you can even write your own server, if
you don't like one of the existing containers.
But if you have no experience with Java, I suggest to install Tomcat or any other J2EE server to
run Java.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2008-02-25 12:58:33
|
Dear Mr. Boekemeier, is there no simple solution for combining the apache(without tomcat), the javabridge and in phpfiles embedded javacode??? (And without using the in php integrated javamodule, which actually doesn't work :o) ) I can't imagine that the only way is to use that tomcat application... My java knowledge is very poor, but I'm able to use google :o) and I think I'm not that stupid, so if you can give some hints, how to get this bridge working, I could be able to get the rest on my own (perhaps!!!) Previous installation used a copy command (Copy java-x86-windows.dll from the JavaBridge.war to C:\PHP\ext), but version 3.2.1 was used, and there the"java-x86-windows.dll" file exists. In all of the versions which could be downloaded at sourceforge, this file is no longer existing... I want to use birt, that's why I'm trying to use that bridge... Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 13:33:11
|
Hi,
> (And without using the in php integrated javamodule, which actually
> doesn't work :o) )
the PHP/Java Bridge, as the successor of that module, separates the Java and PHP sides; which is
precisely the reason why the PHP/Java Bridge does work, and the original PHP module doesn't.
> I can't imagine that the only way is to use that tomcat application...
We could give you instructions how to start a simple JVM. However, as soon as you need to access
standard libraries, you'll need a standard servlet engine, anyway.
So we've decided to not waste your (and our) time by not providing any non-standard bindings.
Regards,
Jost Boekemeier
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-26 10:11:02
|
Dear Mr. Boekemeier, I understand your point of argumentation, no problems... AND I made it, it's working :o) I only had an old entry in the systemvariables... *grr* :o) My absolutely last question [yes, really... :o)] is, I can start the bridge in two different ways, The first one is, to use the JavaBridge.jar file and doubleclick it, and start it. The second one is to use the "java -jar JavaBridge.jar SERVLET:8080" But is there a way to autostart it, when a script using that bridge is running? I'm sorry, but again without tomcat... That would be absolutely great... By the way, are you the only one who is answering all those questions??? Greetings, Matthias |
|
From: <php...@li...> - 2008-02-26 14:45:36
|
Hi,
> But is there a way to autostart it, when a script using that bridge is
> running?
You could take a look at tomcat, which automatically starts as a windows or unix service.
> I'm sorry, but again without tomcat...
You could take the Java autostart code from tomcat. Or you could write your own service using
servany.exe.
But this is definitely outside of the scope of the PHP/Java Bridge.
Regards,
Jost Boekemeier
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
|