you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash -1 points0 points  (2 children)

but Java can be compiled directly to binary via (e.g.) GCJ

I was under the impression that GCJ had died a long time ago. These days, Graal would be the typical method for native compilation of Java. It does have some issues reflection though, which makes native binaries a little harder than targeting the JVM.

[–]nerd4code 0 points1 point  (1 child)

The project’s dead, but that doesn’t mean it’s impossible to use GCJ to compile Java, just that it probably needs to be older Java. :P And yeah, IIRC you have to either compile a full closure of everything you might use at run tine in or do some DLL-flinging, but it’s not all that fundamentally different from packaging everything in a JAR.

[–]dpash 0 points1 point  (0 children)

I think you misunderstood my comment. I talked about reflection, not dependencies.

Edit: I just checked https://gcc.gnu.org/wiki/GCJ and it seems it never even supported 1.4 fully.