How can I execute a Java program within a php script?

后端 未结 4 421
慢半拍i
慢半拍i 2021-01-02 22:02

I am writing a simple web upload script. The goal is to upload a file using php, and then calling a java program to process this file.
I have done the work for uploading

4条回答
  •  佛祖请我去吃肉
    2021-01-02 22:55

    It's possible it has to do with the path that the exec is defaulting to. You may need to explicitly define your classpath with an absolute path to your .class or jar files when calling java.

提交回复
热议问题