The issue with Linux installation

Hello,

I’m trying to install Aspose.cells for PHP via Java on Amazon linux and Ubuntu as per this guide:

I have PHP7.2.11 version and java 1.8

When I try to run the JavaBridge application, I’m getting this:
java -Djava.ext.dirs=lib -jar JavaBridge.jar
java.lang.RuntimeException: java.lang.NullPointerException: name
at php.java.bridge.Standalone.init(Standalone.java:184)
at php.java.bridge.Standalone.main(Standalone.java:307)
Caused by: java.lang.NullPointerException: name
at php.java.bridge.http.TCPServerSocket.create(TCPServerSocket.java:45)
at php.java.bridge.Standalone.bind(Standalone.java:71)
at php.java.bridge.Standalone.init(Standalone.java:179)
… 1 more

What could be the reason and what am I missing there?
Also, is there any way to automate aspose.cells installation on Linux thus everything could be scripted?

Thanks,
Ivan

@iershov,

Thanks for providing us details.

Could you try the below command to run the bridge.
java -Djava.ext.dirs=lib -jar JavaBridge.jar SERVLET_LOCAL:8080 >/dev/null 2>&1 &

Hope, it helps a bit.

@Amjad_Sahi,

Thanks a lot, it works now

@iershov,

Good to know that your issue is sorted out by the suggested command line. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.