I was having some trouble running CircuitSim on Java 11, so I started messing with this
Maybe you already knew about this, but apparently Java 9 introduced "modules", and OpenJFX after Java 9 is distributed as these "modules". I still don't understand the benefit of them but I'm probably just not Java-woke enough
If you run ./gradlew jlink, the "badass" jlink plugin will generate build/image/bin/CircuitSim, a shell script which will launch CircuitSim. ./gradlew jlinkZip will generate build/CircuitSim.zip, a zip you can decompress somewhere to "install" CircuitSim. Spicy
I think this is more of a starting point, though, since ./gradlew run doesn't work properly for example. According to ./gradlew run --debug, it actually runs:
Those -Dx=y arguments and the classname at the end seem to be misplaced and are passed to CircuitSim as arguments (it tries to open each one as a circuit file and fails). I don't know if this is a bug in Gradle or the the plugin, or some kind of misconfiguration on my part.
Hi Roi,
I was having some trouble running CircuitSim on Java 11, so I started messing with this
Maybe you already knew about this, but apparently Java 9 introduced "modules", and OpenJFX after Java 9 is distributed as these "modules". I still don't understand the benefit of them but I'm probably just not Java-woke enough
If you run
./gradlew jlink
, the "badass"jlink
plugin will generatebuild/image/bin/CircuitSim
, a shell script which will launch CircuitSim../gradlew jlinkZip
will generatebuild/CircuitSim.zip
, a zip you can decompress somewhere to "install" CircuitSim. SpicySeems like Java 8 will be supported for about another year, but in case it's ever time to upgrade, I hope this helps
I think this is more of a starting point, though, since
./gradlew run
doesn't work properly for example. According to./gradlew run --debug
, it actually runs:Those
-Dx=y
arguments and the classname at the end seem to be misplaced and are passed to CircuitSim as arguments (it tries to open each one as a circuit file and fails). I don't know if this is a bug in Gradle or the the plugin, or some kind of misconfiguration on my part.