electronstudio / jaylib-ffm

Other
14 stars 2 forks source link

Need help with modules #12

Open coderextreme opened 3 days ago

coderextreme commented 3 days ago

I need help with modules and jaylib-ffm. I need modules for Java RMI, but apparently the Main.java class from the jaylib-ffm examples does not work with a module-info.java file. Here's my module-info.java file, for example:

module net.coderextreme { requires javafx.controls; requires java.desktop; requires java.rmi; requires com.formdev.flatlaf; requires org.seleniumhq.selenium.api; requires org.seleniumhq.selenium.support; requires org.seleniumhq.selenium.chrome_driver; requires org.seleniumhq.selenium.firefox_driver; requires org.seleniumhq.selenium.edge_driver; requires org.seleniumhq.selenium.safari_driver; requires org.seleniumhq.selenium.ie_driver; requires org.seleniumhq.selenium.remote_driver; opens net.coderextreme.motion to java.rmi; exports net.coderextreme.dev; exports net.coderextreme.icbm; exports net.coderextreme.main; exports net.coderextreme.motion; }

Plus, I need a maven plugin for running apps that actually takes arguments.

Thanks!

John

electronstudio commented 2 days ago

We could add a module-info.java to the next release to make it easier to use with modular apps, but the current jar should work as an automatic module.

electronstudio commented 1 day ago

Have added module-info.java to latest version 5.5.0-0. You can include it in your module-info.java like this:

module com.example {
    requires io.github.electronstudio.jaylib.ffm;
}