Questions tagged [php-java-bridge]

The PHP/Java Bridge is an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine.

It is a software project hosted on sourceforge: http://php-java-bridge.sourceforge.net/pjb/

168 questions
8
votes
3 answers

Cannot run PHP script under Tomcat

Am using Tomcat 6. I have installed PHP and try to get PHP running inside Tomcat with PHP/JavaBridge. I have deployed JavaBridge.war inside Tomcat's webapps directory. When running any PHP script, I will get this error below. Please help and I thank…
Segaraga
  • 81
  • 1
  • 1
  • 3
8
votes
2 answers

Using Eclipse BIRT Report Designer via PHP

I want to use Birt Reports in an php webproject. Therefore I installed the recommend Java Bridge and the BIRT Runtime by moving JavaBridgeTemplate621.war and birt.war to my Tomcat. After that I wrote a short class calling the BirtEngine: try { …
Timo S
  • 81
  • 2
6
votes
6 answers

Working with Php-Java Bridge

I am having trouble setting up the Php-Java Bridge setup properly. I will explain what I have done. My site is in pure php For our payment transaction process we need to set up a php-java bridge I followed this link to setup the bridge PHP-JAVA…
Scrappy Cocco
  • 1,192
  • 3
  • 21
  • 38
6
votes
2 answers

Write binary stream to browser using PHP

Background Trying to stream a PDF report written using iReport through PHP to the browser. The general problem is: how do you write binary data to the browser using PHP? Working Code header('Cache-Control: no-cache…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
6
votes
3 answers

xampp,php-java-bridge show notice: Undefined property: java_Client::$cancelProxyCreationTag

i get the following notice when I try to use javaBridge because I want to use java code in php,I followed some tutorials but encoutered following things Undefined property: java_Client::$cancelProxyCreationTag in D:\xampp\htdocs\java\Java.inc on…
whitekevin
  • 311
  • 3
  • 15
5
votes
5 answers

Generic bridge between C++ and PHP

We have a web application (quite a heavy-weight one) that does a whole bundle of stuff, web ui, mathematical processing and modelling, and database-related stuff. A number of the processes that happen in PHP are quite slow, mostly because PHP sucks…
Tom O'Connor
  • 503
  • 9
  • 30
5
votes
4 answers

How do I add a Java backend to an existing PHP site without adding a tomcat server for Java Bridge?

Currently we're using PHP for our websites. Now we're thinking about writing the backend in Java, because of the type safety of the language, and the availability of all kind of tools for Java. I've been reading about Java Bridge and now I'm…
Myrddin81
  • 211
  • 1
  • 12
5
votes
1 answer

Feasibility of using PHP exec() to speed up backend

I understand from PHP exec() performance that running exec() creates an overhead but in large programs or websites, wouldn't it be beneficial to have parts of the backend written in another language, and have PHP call the program using exec? For…
wonton
  • 7,568
  • 9
  • 56
  • 93
4
votes
3 answers

How to pass value from java to PHP?

I am trying to pass a value from java class to PHP file on the server to test this value and reply to java. The problem it returns null value. Java Code package phpJava; import java.io.*; import java.net.URL; import javax.swing.JOptionPane; public…
Martin
  • 131
  • 1
  • 8
3
votes
4 answers

PHP JavaBridge permission error

I have an existing large(ish) PHP web app (using Apache and MySQL) which now needs to be able to call a Java based reporting engine. So, what I'm trying to achieve is the ability to access java classes from within the existing PHP app. So far, on a…
david_m_1
  • 61
  • 1
  • 6
3
votes
2 answers

PHP-Java interop - Gearman or PJB?

Which is the overall best option for calling Java from PHP? Gearman PHP/Java Bridge or something else entirely? By "best" I mean easy to use, reliable, transparent (for debugging purposes) - the whole enchilada. To put it the other way, does…
Rob Agar
  • 12,337
  • 5
  • 48
  • 63
3
votes
1 answer

How to communicate with java code in PHP

G' Day, I have a requirement, where need to invoke java function in PHP script. I have been gone through PHP JAVA Bridge concept but not able to call from PHP script. May be my Process was wrong. Please find the below process what i have been…
Neil
  • 779
  • 4
  • 13
3
votes
1 answer

BIRT - .rptdesign has error and can not be run

I successfully set up BIRT Viewer and PHP/Java Bridge and I can view/open "testWebReport.rptdesign" report got from this sample package through both of them like this: BIRT…
petter386
  • 205
  • 1
  • 5
  • 19
3
votes
2 answers

PHP variables to Java applet?

I have an audio visualizer applet I created with processing and minim using fft to analyze the audio. Now I want to feed in songs to the program dynamically with php as the user clicks on a song. I have read about JavaBridge and have it up and…
Dante Cullari
  • 769
  • 13
  • 21
2
votes
1 answer

JavaBridge PHP-Java How to call a java class from a php file

I set up a JavaBridge api over a Tomcat server. All right, it works well. But I've got a specific need, I have Java classes to call from PHP and I haven't found any documentation about this. Each java class is in a different file, do I have to…
flo360
  • 73
  • 1
  • 2
  • 6
1
2 3
11 12