Skip to content

KeyRain - test with JEP330 launch #13

Description

@apws

Hello Almas,
I am just playing with some JavaFX examples using JEP330 launching, as I found for my first experiments, that basically launch(YourAppClass.class, args) works with on-the-fly classloading.

I quickly fetched required modules from maven (ya, manually, very quickly, so game works....) and found that it tries to access EntityType.main(String[]) so I put him here passing of launch and it kinda works, but crashes on mouse input ...

Can you pls quickly think what can be failing and why the Enum main is required for something??

In run.txt there is command to execute the KeyRainApp.jxc file (containing java sources of your app)
There are even 2 log files where it crashed (but I had to put app.main into enum.main !!! why??)

Its just a experiment to allow quick and dirty changes to tiny apps, now also using some referenced/provided modules...

(I am sharing this my BEGINNERS samples approach with gluon too, found it very cool for tiny things - your example was challenging as it required MANY modules and I manually fed here one by one all of them - some kind of dependecy scan and load from maven will be coo )))

But sure - I also CAN use maven finally - its easy and your tiny example is at the edge of usability of JEP330 - that was the goal to try here :-)))

(sorry, gmail complains about security so I replaced modules only by list of them)

UPDATE: Well, it in fact works :))) but the Enum.main is something I couldnt understand, really

Thanks,
Petr
210327-FXGL-Keyrain-JEP330.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions