gpt4 book ai didi

java - PHP/Java 集成

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:58:35 24 4
gpt4 key购买 nike

有没有PHP和Java集成的经验?我用 Java“Hello”写了一个类。现在,当我使用

从 php 创建此类的实例时,我想从 php 调用它的方法
$obj = new Java(Hello);

然后它给了我 fatal error 。我已经尝试了很多次来设置 php ini 变量等,但我找不到任何东西。请告诉我如何设置它。

提前致谢


引用:http://php.net/manual/en/book.java.php

最佳答案

看看:

PHP-Java Bridge

The PHP/Java Bridge is an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine. It is up to 50 times faster than local RPC via SOAP, requires less resources on the web-server side. It is faster and more reliable than direct communication via the Java Native Interface, and it requires no additional components to invoke Java procedures from PHP or PHP procedures from Java.

关于java - PHP/Java 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3319161/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com