Using I-net Report Server with PHP JavaBridge

  Kiến thức lập trình

I have an ubuntu server with apache2 and PHP installed. I also have JavaBridge installed and working with other java libraries in some of my PHP code. I have downloaded debian/ubuntu version of the server and the SDK from the inet website
I installed the .deb file on my server, but did not know what to do with the SDK really.

When I try to use java() calls in my code I can get

require_once DRUPAL_ROOT . '/libraries/JavaBridge/java/';

to work fine, but

$inet_engine = new java('');

gives me the following error.

An Java exception has occurred: [[o:Exception]:”java.lang.Exception: CreateInstance failed: new Cause: java.lang.ClassNotFoundException: VM: 1.8.0_292@” at:
#-38 org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
#-37 org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
#-36 java.lang.Class.forName0(Native Method)
#-35 java.lang.Class.forName(

I assume I need to make the .jar libraries available to JavaBridge server side somehow, but don’t know what I need to do to make that happen. Can anyone help? I would also just love to know if anyone has done this before, using JavaBridge to create PDF reports from .RPT files using inet report server.

Not to complicate the question, but I would be interested in suggestions about better ways to accomplish creating PDF from crystal RPT file as well, if that is allowed. Maybe just message me somehow? I am planning to pass JSON data along and not be connected to a Database exactly, so that might affect possible solutions.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website