PDA

View Full Version : سوال در مورد اجرای فایل jar در محیط php



ehsan32909
چهارشنبه 15 آبان 1392, 16:59 عصر
سلام به تمامی دوستان
من می خوام یک فایل jar به نام IFC-to-RDF-converter.jar رو در محیط PHP اجرا کنم.
این فایل چندین پارامتر ورودی دارد که باید به این فایل فرستاده بشه و در نهایت یه فایل رو به عنوان خروجی برگردونه.
ارگومان های ورودی و خروجی اون شامل موارد زیر می باشد:



> convert(String express_file, String ifc_file, String output_file, String model_name, String path, VirtConfig virt)

> "Usage: java IFC_Converter express_filename ifc_filename output_filename model_name"
> "Example: java IFC_Converter c:\\jo\\IFC2X3_TC1.exp C:\\jo\\sample.ifc c:\\jo\\output_rdf.txt sample"

The input needed, is the EXPRESS file of IFC (to be found online) and an IFC file. The rest are output parameters.


> The EXPRESS file name can be found online: http://www.buildingsmart-tech.org/specifications/ifc-releases/ifc2x3-tc1-release/summary
> The IFC file is a file that you need to provide (e.g. via the PHP interface)
> The output file, is of course, the output file that you wish to generate containing the IFC/RDF graph
> The model name is a name for the model / RDF graph. Most likely, you wish to use the file name here.

می خواستم از دوستان و اساتید در مورد اجرای این فایل در محیط PHP کمک بخوام. خیلی ممنون می شم کسی بتونه بهم کمک کنه
در صورت نیاز به اطلاعات بیشتر می تونید به سایت این مبدل به آدرس زیر مراجعه کنید.

https://github.com/mmlab/IFC-to-RDF-converter

دانلود فایل های مورد نیاز (http://www.uplooder.net/cgi-bin/dl.cgi?key=8430ccbca0feb768e73088bb81cc1677)

MMSHFE
چهارشنبه 15 آبان 1392, 21:58 عصر
دوست عزیز، PHP که سیستم عامل نیست! JDK هم همراهش نداره. میتونید با کمک دستور shell_exec یا exec یا system و امثال اونها بصورت Command Line ازطریق سیستم عامل اجراش کنید.