Php/Java Integration

前端 未结 5 483
挽巷
挽巷 2020-12-11 21:13

Have you experience of integration of php and Java? I\'ve written a class in Java \"Hello\". Now I want to call its method from php when I create an instance of this class f

5条回答
  •  孤城傲影
    2020-12-11 21:46

    Could it be you are just missing the quotes around the Java Class? Also make sure you actually do have a Java VM on the machine you are trying to run the code on and make sure you have properly set up the config options. Also, the Java extension is a PECL extension and has to be installed. It is not part of the native distribution. Furthermore, the extension is considered unmaintained and dead, so you might want to have a look at the JavaBridge suggested elsewhere. Zend Server also brings a JavaBridge.

提交回复
热议问题