I got past Socialcalc and installed Java via

#apt-get install sun-java6-jdk

next is supposed to be:
"Install PHP/Java Bridge 5.4.4.2" - It is strongly recommended to install the standalone version instead of the Tomcat/J2EE version. Please make sure it works correctly before proceeding.

??? How ???

Comments

qriz’s picture

I found the INSTALL.STANDALONE in

http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/p...

but there is a lot of room for misinterpretation it seems ...

which section is relevant? I go with Deployment since Development states:

"Right-click on ext/JavaBridge.jar and select "open with Java ...".
In the "Starting ..." dialog select SERVLET_LOCAL:8080."

I'm not on a windows server its a ssh controlled linux-box in the corner.

Deployment
----------

#1
Add the PHP/Java Bridge to your Java application(s):

* Extract the JavaBridge.jar library from JavaBridge.war, for example
with the command:

java -classpath JavaBridge.war TestInstallation

#2
* Add JavaBridge.jar to the main library of you non-J2EE
application. This can be done by adding the following line to your
application's META-INF/MANIFEST.MF:

Class-Path: JavaBridge.jar

#3
It is also possible to simply merge all files into your non-J2EE
application..

* Add the following 3 lines to the main class of your non-J2EE
application:

public static final String JAVABRIDGE_PORT="8087";
static final php.java.bridge.JavaBridgeRunner runner =
php.java.bridge.JavaBridgeRunner.getInstance(JAVABRIDGE_PORT);

I did all of the above per ssh ... not sure though if in the right places

What confuses me a bit about #1, is

* Add JavaBridge.jar to the main library of you non-J2EE
application"

What is the main library??? the folder?, And what is the non-J2EE application???
I copied JavaBridge.jar into sites/all/libraries/javabridge/ in my multisite drupal installation .... since I want to use it eventually on more then one site.

I added #2 & #3 into META-INF/MANIFEST.MF

still don't know how to verify that anything worked...
to be continued...

qriz’s picture

I got it to run local in Xampp with Tomcat by following the Developer steps in the INSTALL.STANDALONE mentioned above.
So I can finally play with it to see if it is what i need ;-)

infojunkie’s picture

Thanks for your documentation on how to install the standalone version of PJB. Feel free to mark this as fixed when it works for you.

qriz’s picture

I will try to get it installed on my testserver and share my results when done.

infojunkie’s picture

Version: 6.x-1.4 » 6.x-1.5-beta3
Status: Active » Closed (fixed)

The latest 1.5-beta3 version has removed the Java dependencies and replaced them with PHPExcel library. Please delete your sheetnode folder and install the latest version as per the instructions on the module page.