You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
memory-agape edited this page Apr 17, 2019
·
7 revisions
PHPJava\Core\JavaArchive
Introduction
JavaArchive class is provided APIs for executing .jar file.
How to use
<?phpusePHPJava\Core\JavaArchive;
// You must pass parameters to entrypoint within the `execute` method.// The `execute` method haven't default parameters.
(newJavaArchive('Test.jar'))
->execute([]);
// or
(newJavaArchive('Test.jar'))
// Specify Test.class on JavaArchive
->getClassByName('Test')
->getInvoker()
->getStatic()
->getMethods()
->call(
'main',
[]
);