Japanese installer with javapackager

First,

To distribute the jar in exe format, do as follows. In addition, it is necessary to install Inno Setup in advance.

javapackager -deploy -native exe -outdir dest -outfile foo -srcdir build\libs -srcfiles foo.jar -appclass Main

There are various other options, but refer to the help etc. for details.

Since only packages for Windows can be used on Windows, it is quick to call it with bat without using gradle.

Oh, the installer is ready! I thought, and when I executed it, it turned into English ... and even though it was an installer for those people, it was in English ...

Do it easily.

Apparently, there is no language option or anything like that. However, by default, it seems to use Default.isl for English, so you can simply replace it with a Japanese file.

Copy destination: C:\Program Files (x86)\Inno Setup 5\Default.isl
Copy source: C:\Program Files (x86)\Inno Setup 5\Languages\Japanese.isl

I'll do it properly. Survey for.

The purpose is achieved by the previous method, but it feels too strange ... So, I'm not sure though I've tried various things. When I was wandering around, the site of here was hit. The source is openjfx and ant-javafx.jar is the entity, so bring the source and start debugging. Somehow, when I searched for something like main, "[com / sun / javafx / tools / packager / Main](http://hg.openjdk.java.net/openjfx/8u40/rt/file/105417e52ffe/modules/fxpackager] /src/main/java/com/sun/javafx/tools/packager/Main.java) ”is like that, so I will chase from there.

Apparently, "[com/oracle/tools/packager/windows/template.iss](http://hg.openjdk.java.net/openjfx/8u/rt/file/105417e52ffe/modules/fxpackager/src/main/resources" /com/oracle/tools/packager/windows/template.iss) "is the default, but it seems that they will go to see" package / windows /% name% .iss ".

Procedure to do it properly

  1. [template.iss](http://hg.openjdk.java.net/openjfx/8u/rt/file/105417e52ffe/modules/fxpackager/src/main/resources/com/oracle/tools/packager/windows/ Bring template.iss) and save it in package / windows /% name% .iss.

  2. Add Japanese to Languages.

  [Languages]
- Name: "english"; MessagesFile: "compiler:Default.isl"
+ Name: "jp"; MessagesFile: "compiler:Languages/Japanese.isl"

Recommended Posts

Japanese installer with javapackager
Parse Japanese addresses with regular expressions
Break through the Japanese table with MyBatis