Started by fam621, December 31, 2017, 01:26:02 PM
0 Members and 1 Guest are viewing this topic.
Quote from: fam621 on January 19, 2018, 04:16:04 PMAfter I install this, where do I put all the files in?
Quote from: Matthew on May 03, 2019, 04:22:05 PMNightly Updater is a .jar program, known as a 'Java applet'. In the past, the way to use a Java applet was to download 'Java' (a large package of tools called a 'JRE') from Java.com. This package would update itself regularly.
Quote from: Matthew on May 03, 2019, 04:22:05 PMSince the Nightly Updater was written, this model has now been abandoned. Programs written in Java are supposed to be distributed as EXEs (like Simutrans itself). Java is now available in several distributions (somewhat like Linux) for coders. To use a Java applet, you must download a full distribution (called a 'JDK'). The Nightly Updater requires version 9 or above (version 9 itself is no longer available).
Quote from: Matthew on May 03, 2019, 04:22:05 PMNightly Updater works for me using a distribution called SapMachine. This is free (both 'free beer' and 'free speech') and version 11 will receive security updates until September 2022. Although it's a large package (~200MB) it's still smaller than a single download of the Simutrans-Expanded ZIP file, so well worth the effort. It has to be manually updated, but I don't think that this is necessary if it is only used for the Nightly Updater. However, if it becomes the default Java installation (which Windows users can turn off in the installer), then occasionally checking their website for security updates for version 11 might be wise.
Quote from: Matthew on May 03, 2019, 04:22:05 PM@DrSuperGood: I understand that you have licensed Nightly Updater under the Artistic Licence, which makes total sense so that it can be distributed with Simutrans. Would you be so kind as to dual-license it under the GPL with class-path exception too? This is the licence used by SapMachine, and therefore seems to be a prerequisite to any eventual distribution as an EXE.
Quote from: DrSuperGood on May 04, 2019, 04:02:49 AMAnd this still is the case, minus the auto updating of Java SE....To run Java applications now you still need to download a JVM. Oracle is kind enough to continue providing one for free. However as part of their drive to push Java fully open source they have discontinued "standard edition" with the JDK being the new standard edition. For Windows users all one has to do is install the JDK and it should work. However when I did this approach some manual tweaking was required since it did not register the JVM as installed correctly, something that has hopefully been fixed over the last many months.
QuoteJava programs cannot compile to executables due to their nature. They always require a Java Virtual Machine to run. Yes one can technically compile a JVM into an executable and embed your Java program inside the executable as well, however this is a rather hacky approach as it means any update to the software requires downloading a complete multi megabyte JVM even for a tiny couple of kilobyte program.
QuoteIt runs fine on Windows with the latest Oracle JDK.The point of writing it in Java was because Java is cross platform and so should work on Windows, Linux and Mac with the same download. Executables are not portable as they are Windows only files and so would at very least require 3 different distributions, one each for Windows, Linux and Mac and still it might not cover all platforms.
QuoteI am not sure what you mean by "class-path exception" in this context.
Quote from: Matthew on May 09, 2019, 09:33:37 PMAs a Windows user, if I go to Java.com (as was the correct practice for many years), I am pushed to download Java 8 (with a new warning about licence conditions that seems intended to scare off ordinary users) and there is no mention of Java 9 and upwards at all. When I searched for Java 9, I found the Java 11 and 12 JDKs (9 seems to have gone), but they very clearly state that they are for developers and I am not a developer, so at first sight this seemed to be the wrong choice. I installed it, but like you I found that the Oracle JVM did not install correctly (only Java 8 appears in my PATH). So I found using applets much less straightforward than it used to be.