Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/11/2008, 14:58
jspcat
 
Fecha de Ingreso: junio-2005
Ubicación: Barcelona
Mensajes: 458
Antigüedad: 18 años, 11 meses
Puntos: 4
Puente PHPJava

Hola,

Quiero que desde un archivo php me funcione lo siguiente

java_require('http://localhost/Proves/HolaMundo.jar');

Trabajo bajo ubuntu 8.10 y tengo instalado un lampp

En teoria cuanod hiciera el phpinfo me deberia salir una extension java que no es el caso.
Lo que he seguido hasta ahora es:

sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun
sudo apt-get install liblucene-java libitext-java
sudo dpkg -i php-java-bridge_4.3.0-1_i386.deb


Pero en este último paso me rebienta diciendo
invoke-rc.d: unknown initscript, /etc/init.d/apache2 not found.
dpkg: warning - old post-removal script returned error exit status 100
dpkg - trying script from the new package instead ...
invoke-rc.d: unknown initscript, /etc/init.d/apache2 not found.
dpkg: error processing php-java-bridge_4.3.0-1_i386.deb (--install):
subprocess new post-removal script returned error exit status 100
invoke-rc.d: unknown initscript, /etc/init.d/apache2 not found.
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 100
Errors were encountered while processing:
php-java-bridge_4.3.0-1_i386.deb


Alguien tiene alguna idea?

Saludos
__________________
La ficción es y será mi única realidad