win-release-package.sh creates a corrupted nxt-client-1.12.2.jar file

Hi,

Sorry for the previous post,

I am using java version "1.8.0_202" and javac 1.8.0_192

I ran again the win-release-package.sh in the NXT repository, I have a few errors but the main issue is that the nxt-client-1.12.2.jar is corrupted and therefore the nxt-client-1.12.2.exe does not work. Same issue in the nxt-starter-kit repository.

My errors

sh ./win-release-package.sh 1.12.2
PACKAGE=nxt-client-1.12.2
compile
compiling core...
Note: src\java\nxt\http\APIEnum.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
core class files compiled successfully
compiling desktop...
src\java\nxtdesktop\DesktopApplication.java:19: error: package javafx.application does not exist
import javafx.application.Application;
                         ^
src\java\nxtdesktop\DesktopApplication.java:20: error: package javafx.application does not exist
import javafx.application.Platform;
                         ^
src\java\nxtdesktop\DesktopApplication.java:21: error: package javafx.concurrent does not exist
import javafx.concurrent.Worker;
                        ^
src\java\nxtdesktop\DesktopApplication.java:22: error: package javafx.geometry does not exist
import javafx.geometry.Rectangle2D;
                      ^
src\java\nxtdesktop\DesktopApplication.java:23: error: package javafx.scene does not exist
import javafx.scene.Scene;
                   ^
src\java\nxtdesktop\DesktopApplication.java:24: error: package javafx.scene.image does not exist
import javafx.scene.image.Image;
                         ^
src\java\nxtdesktop\DesktopApplication.java:25: error: package javafx.scene.web does not exist
import javafx.scene.web.WebEngine;
                       ^
src\java\nxtdesktop\DesktopApplication.java:26: error: package javafx.scene.web does not exist
import javafx.scene.web.WebView;
                       ^
src\java\nxtdesktop\DesktopApplication.java:27: error: package javafx.stage does not exist
import javafx.stage.FileChooser;
                   ^
src\java\nxtdesktop\DesktopApplication.java:28: error: package javafx.stage does not exist
import javafx.stage.Screen;
                   ^
src\java\nxtdesktop\DesktopApplication.java:29: error: package javafx.stage does not exist
import javafx.stage.Stage;
                   ^
src\java\nxtdesktop\DesktopApplication.java:30: error: package javafx.stage does not exist
import javafx.stage.StageStyle;
                   ^
src\java\nxtdesktop\DesktopApplication.java:31: error: package netscape.javascript does not exist
import netscape.javascript.JSObject;
                          ^
src\java\nxtdesktop\DesktopApplication.java:67: error: cannot find symbol
public class DesktopApplication extends Application {
                                        ^
  symbol: class Application
src\java\nxtdesktop\DesktopApplication.java:72: error: cannot find symbol
    private static volatile Stage stage;
                            ^
  symbol:   class Stage
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:73: error: cannot find symbol
    private static volatile WebEngine webEngine;
                            ^
  symbol:   class WebEngine
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:74: error: cannot find symbol
    private JSObject nrs;
            ^
  symbol:   class JSObject
  location: class DesktopApplication
src\java\nxtdesktop\JavaScriptBridge.java:19: error: package javafx.application does not exist
import javafx.application.Platform;
                         ^
src\java\nxtdesktop\JavaScriptBridge.java:20: error: package javafx.scene.input does not exist
import javafx.scene.input.Clipboard;
                         ^
src\java\nxtdesktop\JavaScriptBridge.java:21: error: package javafx.scene.input does not exist
import javafx.scene.input.ClipboardContent;
                         ^
src\java\nxtdesktop\DesktopApplication.java:122: error: cannot find symbol
    public void start(Stage stage) {
                      ^
  symbol:   class Stage
  location: class DesktopApplication
src\java\nxtdesktop\JavaScriptBridge.java:42: error: cannot find symbol
    private Clipboard clipboard;
            ^
  symbol:   class Clipboard
  location: class JavaScriptBridge
src\java\nxtdesktop\DesktopApplication.java:81: error: cannot find symbol
            Application.launch(DesktopApplication.class);
            ^
  symbol:   variable Application
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:85: error: cannot find symbol
            Platform.runLater(() -> showStage(false));
            ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:91: error: cannot find symbol
        Platform.runLater(() -> showStage(true));
        ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:109: error: cannot find symbol
        Platform.exit();
        ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:121: error: method does not override or implement a method from a supertype
    @Override
    ^
src\java\nxtdesktop\DesktopApplication.java:126: error: cannot find symbol
        Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
        ^
  symbol:   class Rectangle2D
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:126: error: cannot find symbol
        Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
                                          ^
  symbol:   variable Screen
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:127: error: cannot find symbol
        WebView browser = new WebView();
        ^
  symbol:   class WebView
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:127: error: cannot find symbol
        WebView browser = new WebView();
                              ^
  symbol:   class WebView
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:128: error: cannot find symbol
        WebView invisible = new WebView();
        ^
  symbol:   class WebView
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:128: error: cannot find symbol
        WebView invisible = new WebView();
                                ^
  symbol:   class WebView
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:137: error: cannot find symbol
        Worker<Void> loadWorker = webEngine.getLoadWorker();
        ^
  symbol:   class Worker
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:141: error: package Worker does not exist
                    if (newState != Worker.State.SUCCEEDED) {
                                          ^
src\java\nxtdesktop\DesktopApplication.java:145: error: cannot find symbol
                    JSObject window = (JSObject)webEngine.executeScript("window");
                    ^
  symbol:   class JSObject
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:145: error: cannot find symbol
                    JSObject window = (JSObject)webEngine.executeScript("window");
                                       ^
  symbol:   class JSObject
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:153: error: cannot find symbol
                    nrs = (JSObject) webEngine.executeScript("NRS");
                           ^
  symbol:   class JSObject
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:167: error: cannot find symbol
                            Class webEngineClazz = WebEngine.class;
                                                   ^
  symbol:   class WebEngine
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:196: error: cannot find symbol
        Scene scene = new Scene(browser);
        ^
  symbol:   class Scene
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:196: error: cannot find symbol
        Scene scene = new Scene(browser);
                          ^
  symbol:   class Scene
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:198: error: cannot find symbol
        stage.getIcons().add(new Image(address + "/img/nxt-icon-32x32.png"));
                                 ^
  symbol:   class Image
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:199: error: cannot find symbol
        stage.initStyle(StageStyle.DECORATED);
                        ^
  symbol:   variable StageStyle
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:203: error: cannot find symbol
        Platform.setImplicitExit(false); // So that we can reopen the application in case the user closed it
        ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:225: error: cannot find symbol
        Platform.runLater(() -> webEngine.executeScript("NRS.getState(null, '" + msg + "')"));
        ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:244: error: cannot find symbol
        Platform.runLater(() -> {
        ^
  symbol:   variable Platform
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:359: error: cannot find symbol
        FileChooser fileChooser = new FileChooser();
        ^
  symbol:   class FileChooser
  location: class DesktopApplication
src\java\nxtdesktop\DesktopApplication.java:359: error: cannot find symbol
        FileChooser fileChooser = new FileChooser();
                                      ^
  symbol:   class FileChooser
  location: class DesktopApplication
src\java\nxtdesktop\JavaScriptBridge.java:55: error: cannot find symbol
        Platform.runLater(() -> {
        ^
  symbol:   variable Platform
  location: class JavaScriptBridge
src\java\nxtdesktop\JavaScriptBridge.java:102: error: cannot find symbol
            clipboard = Clipboard.getSystemClipboard();
                        ^
  symbol:   variable Clipboard
  location: class JavaScriptBridge
src\java\nxtdesktop\JavaScriptBridge.java:107: error: cannot find symbol
        final ClipboardContent content = new ClipboardContent();
              ^
  symbol:   class ClipboardContent
  location: class JavaScriptBridge
src\java\nxtdesktop\JavaScriptBridge.java:107: error: cannot find symbol
        final ClipboardContent content = new ClipboardContent();
                                             ^
  symbol:   class ClipboardContent
  location: class JavaScriptBridge
Note: src\java\nxtdesktop\JavaScriptBridge.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
52 errors
if javafx is not supported, desktop compile errors are safe to ignore, but desktop wallet will not be available
Tip: You can disable compilation of the desktop using --skip-desktop
no add-ons to compile
compiling tests...
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
tests compiled successfully
compiling installer panels...
installer panels compiled successfully
compilation done
javadoc
copy resources
gzip
generate jar files
Manifest file C:\Users\sando\Desktop\temp\nxt\nxt\.\resource\nxt.manifest.mf generated
Manifest-Version: 1.0
Class-Path: lib/bcprov-jdk15on-160.jar lib/core-3.3.0.jar lib/h2-1.4.2
 00.jar lib/javapoet-1.11.0.jar lib/javase-3.3.0.jar lib/javax.servlet
 -api-3.1.0.jar lib/jetty-client-9.3.28.v20191105.jar lib/jetty-contin
 uation-9.3.28.v20191105.jar lib/jetty-http-9.3.28.v20191105.jar lib/j
 etty-io-9.3.28.v20191105.jar lib/jetty-proxy-9.3.28.v20191105.jar lib
 /jetty-security-9.3.28.v20191105.jar lib/jetty-server-9.3.28.v2019110
 5.jar lib/jetty-servlet-9.3.28.v20191105.jar lib/jetty-servlets-9.3.2
 8.v20191105.jar lib/jetty-util-9.3.28.v20191105.jar lib/json-simple-1
 .1.1.jar lib/lucene-analyzers-common-5.5.5.jar lib/lucene-backward-co
 decs-5.5.5.jar lib/lucene-core-5.5.5.jar lib/lucene-queries-5.5.5.jar
  lib/lucene-queryparser-5.5.5.jar lib/slf4j-api-1.7.22.jar lib/slf4j-
 jdk14-1.7.22.jar lib/tika-core-1.13.jar lib/tika-parsers-1.13.jar lib
 /websocket-api-9.3.28.v20191105.jar lib/websocket-client-9.3.28.v2019
 1105.jar lib/websocket-common-9.3.28.v20191105.jar lib/websocket-serv
 er-9.3.28.v20191105.jar lib/websocket-servlet-9.3.28.v20191105.jar li
 b/weupnp-0.1.4.jar conf/
Main-Class: nxt.Nxt


Manifest file C:\Users\sando\Desktop\temp\nxt\nxt\.\resource\nxtservice.manifest.mf generated
Manifest-Version: 1.0
Class-Path: lib/bcprov-jdk15on-160.jar lib/core-3.3.0.jar lib/h2-1.4.2
 00.jar lib/javapoet-1.11.0.jar lib/javase-3.3.0.jar lib/javax.servlet
 -api-3.1.0.jar lib/jetty-client-9.3.28.v20191105.jar lib/jetty-contin
 uation-9.3.28.v20191105.jar lib/jetty-http-9.3.28.v20191105.jar lib/j
 etty-io-9.3.28.v20191105.jar lib/jetty-proxy-9.3.28.v20191105.jar lib
 /jetty-security-9.3.28.v20191105.jar lib/jetty-server-9.3.28.v2019110
 5.jar lib/jetty-servlet-9.3.28.v20191105.jar lib/jetty-servlets-9.3.2
 8.v20191105.jar lib/jetty-util-9.3.28.v20191105.jar lib/json-simple-1
 .1.1.jar lib/lucene-analyzers-common-5.5.5.jar lib/lucene-backward-co
 decs-5.5.5.jar lib/lucene-core-5.5.5.jar lib/lucene-queries-5.5.5.jar
  lib/lucene-queryparser-5.5.5.jar lib/slf4j-api-1.7.22.jar lib/slf4j-
 jdk14-1.7.22.jar lib/tika-core-1.13.jar lib/tika-parsers-1.13.jar lib
 /websocket-api-9.3.28.v20191105.jar lib/websocket-client-9.3.28.v2019
 1105.jar lib/websocket-common-9.3.28.v20191105.jar lib/websocket-serv
 er-9.3.28.v20191105.jar lib/websocket-servlet-9.3.28.v20191105.jar li
 b/weupnp-0.1.4.jar conf/
Main-Class: nxt.env.service.NxtService


jar files generated successfully
package installer Jar
create installer exe

C:\Users\sando\Desktop\temp\nxt\nxt>python ..\installer\lib\izpack2exe\izpack2exe.py --file ..\nxt-client-1.12.2.jar --output ..\nxt-client-1.12.2.exe --with-7z=..\installer\lib\izpack2exe\7za.exe --no-upx --with-jdk=..\jdk --name nxt  1>..\installer\build-exe.log 2>&1
create installer zip
/cygdrive/c/Users/sando/Desktop/temp/nxt
creating change log nxt-client-1.12.2.changelog.txt

The screenshot of the corrupted file

It looks like I have to install Java FX

Do you know which version of Java and JavaFX do I need?

First lets eliminate the JavaFX compilation problems. Make sure you are using both Java and javac version 8.
The trick is to find a Java 8 jdk distribution that still includes JavaFX.
We are currently building using jdk1.8.0_181
I'm not sure if the latest version from Oracle still includes Java FX and if you can download it for free now.
Another option which is likely to work is the Amazon JDK Downloads for Amazon Corretto 8 - Amazon Corretto

Next if you still have problems there are 2 useful log files in the installer folder build-installer.log and build-exe.log look for error messages towards the end of these files.

Thanks a lot @lior.yaffe do you know if the amazon JDK includes JavaFX?

Per this discussion it does java 8 - Is JavaFX media supported by Corretto? - Stack Overflow

Thanks a lot @lior.yaffe.

I managed to progress a lot more but I have this issue:

INFOS: Adding pack server.mac containing 5 files
-> Fatal error :
   ../installer/setup.xml:206: C:\Users\sando\Desktop\temp\nxt\nxt\.\..\jdk.runtime not found.
com.izforge.izpack.api.exception.CompilerException: ../installer/setup.xml:206: C:\Users\sando\Desktop\temp\nxt\nxt\.\..\jdk.runtime not found.
	at com.izforge.izpack.compiler.helper.AssertionHelper.parseError(AssertionHelper.java:77)
	at com.izforge.izpack.compiler.CompilerConfig.processFileSetChildren(CompilerConfig.java:1023)
	at com.izforge.izpack.compiler.CompilerConfig.addPacksSingle(CompilerConfig.java:876)
	at com.izforge.izpack.compiler.CompilerConfig.addPacks(CompilerConfig.java:769)
	at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:359)
	at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:55)
Caused by: java.lang.Exception: C:\Users\sando\Desktop\temp\nxt\nxt\.\..\jdk.runtime not found.
	at com.izforge.izpack.util.file.types.FileSet.getDirectoryScanner(FileSet.java:201)
	at com.izforge.izpack.compiler.CompilerConfig.processFileSetChildren(CompilerConfig.java:1029)
	at com.izforge.izpack.compiler.CompilerConfig.processFileSetChildren(CompilerConfig.java:1018)
	... 4 more

(tip : use -? to get the commmand line parameters)

Note that I copied the jdk folder of Amazon's JDK into the nxt folder and I renamed it to JDK.
Copying the jre folder as documented seems giving others errors.

The Windows installation should include a runtime JDK version in the jdk.runtime folder and a javafx-sdk.runtime folder which include the JavaFX SDK to be used during runtime.

In Ardor we are currently using OpenJDK 15.0.1 in the jdk.runtime folder but for a new installer I suggest you download the latest JDK JDK 16.0.1 GA Release and the latest JavaFX JavaFX - Gluon (version 16) and unzip them into these folders.

Basically you can unzip the bundle into the Nxt root folder then rename the JDK or JavaFX folder.

Awesome it ALMOST works.

I managed to compile the NXT installer, it installs and when I run the nxtservice.exe or nxt.exe from the installed folder I get "Impossible to run JVM" (or something like this in French).

image

I am so close and so far at the same time!

@lior.yaffe Also I realized that if I don't put a jdk folder and I only have a jdk.runtime and javafx-sdk.runtime folder I get this error Windows can't find jdk/bin/javaw.exe

Do I need the jdk folder when I read the code it seems that javafx-sdk.runtime was enough?
I guess the error I previously posted is related to that aswell.

It looks like I am missing something here :confused: Any idea?

Sorry for spamming I also have a strange issue, if I open the .jar installer of the nxt-start-kit compiled (without any error in the installer.log) nothing happens :confused:

I get this error when I open with java -jar ./client.jar

25 avr. 2021 14:19:00 INFOS: Logging initialized at level 'INFO'
25 avr. 2021 14:19:00 INFOS: Commandline arguments:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io
/IOUtils
        at com.izforge.izpack.core.resource.AbstractResources.getObject(Abstract
Resources.java:193)
        at com.izforge.izpack.core.resource.DefaultLocales.getSupportedLocales(D
efaultLocales.java:450)
        at com.izforge.izpack.core.resource.DefaultLocales.<init>(DefaultLocales
.java:118)
        at com.izforge.izpack.core.resource.DefaultLocales.<init>(DefaultLocales
.java:104)
        at com.izforge.izpack.installer.container.provider.LocalesProvider.provi
de(LocalesProvider.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjecto
r.java:141)
        at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.
java:37)
        at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:
125)
        at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDepende
ncyGuard.observe(AbstractInjector.java:272)
        at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(
MethodInjector.java:132)
        at org.picocontainer.injectors.CompositeInjector.decorateComponentInstan
ce(CompositeInjector.java:58)
        at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
        at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(Prov
iderAdapter.java:96)
        at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(Abs
tractBehavior.java:64)
        at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:9
1)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContain
er.java:692)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:646)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:632)
        at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstanc
e(BasicComponentParameter.java:105)
        at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(Com
ponentParameter.java:136)
        at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleM
emberInjector.java:75)
        at org.picocontainer.injectors.SingleMemberInjector.getMemberArguments(S
ingleMemberInjector.java:60)
        at org.picocontainer.injectors.MethodInjector.getMemberArguments(MethodI
njector.java:112)
        at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:
124)
        at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDepende
ncyGuard.observe(AbstractInjector.java:272)
        at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(
MethodInjector.java:132)
        at org.picocontainer.injectors.CompositeInjector.decorateComponentInstan
ce(CompositeInjector.java:58)
        at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
        at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(Prov
iderAdapter.java:96)
        at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(Abs
tractBehavior.java:64)
        at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:9
1)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContain
er.java:692)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:646)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:671)
        at com.izforge.izpack.installer.container.impl.InstallerContainer.resolv
eComponents(InstallerContainer.java:139)
        at com.izforge.izpack.installer.container.impl.GUIInstallerContainer.res
olveComponents(GUIInstallerContainer.java:94)
        at com.izforge.izpack.installer.container.impl.InstallerContainer.fillCo
ntainer(InstallerContainer.java:80)
        at com.izforge.izpack.core.container.AbstractContainer.initialise(Abstra
ctContainer.java:304)
        at com.izforge.izpack.core.container.AbstractContainer.initialise(Abstra
ctContainer.java:284)
        at com.izforge.izpack.installer.container.impl.GUIInstallerContainer.<in
it>(GUIInstallerContainer.java:44)
        at com.izforge.izpack.installer.bootstrap.InstallerGui.run(InstallerGui.
java:43)
        at com.izforge.izpack.installer.bootstrap.Installer.launchInstall(Instal
ler.java:217)
        at com.izforge.izpack.installer.bootstrap.Installer.start(Installer.java
:193)
        at com.izforge.izpack.installer.bootstrap.Installer.main(Installer.java:
72)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.IOUtils
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 48 more

You need both jdk.runtime and javafx-sdk.runtime folders when creating the installation, these will become the jdk and javafx-sdk folders in the installed product.

I'm not familiar with the exception you posted above but you wrote that you already managed to install the product so this is probably not relevant.

In the resulting installation do you see a jdk and javafx-sdk folders?

If so, open a command prompt where you created the installation, say, "C:\Program Files\NXT"

Type
jdk\bin\java.exe -version
Post the output

Type
jdk\bin\java.exe -jar nxt.jar
Post the output

You need both jdk.runtime and javafx-sdk.runtime folders when creating the installation, these will become the jdk and javafx-sdk folders in the installed product.

If I haven't put another jdk folder I would get Windows can't find jdk/bin/javaw.exe after running the installer build process and running the installer.

I'm not familiar with the exception you posted above but you wrote that you already managed to install the product so this is probably not relevant.

It concerns the release from the nxt-starter-kit

In the resulting installation do you see a jdk and javafx-sdk folders?

Yes

Here is the log for the two commands

sando@Sandoche /cygdrive/c/Program Files/NXT
$ jdk/bin/java.exe -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-24)
OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

sando@Sandoche /cygdrive/c/Program Files/NXT
$ jdk/bin/java.exe -jar nxt.jar
Initializing Nxt server version 1.12.2
isHeadless=false
Runtime mode nxt.env.CommandLineMode
User home folder C:\Program Files\NXT
Loading nxt-default.properties from classpath
Loading logging-default.properties from classpath
Can't load log handler "java.util.logging.FileHandler"
java.nio.file.AccessDeniedException: logs\nxt.0.log.lck
java.nio.file.AccessDeniedException: logs\nxt.0.log.lck
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsE
xception.java:89)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Windows
FileSystemProvider.java:121)
        at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
        at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345)
        at java.logging/java.util.logging.FileHandler.openFiles(FileHandler.java
:512)
        at java.logging/java.util.logging.FileHandler.<init>(FileHandler.java:27
9)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInsta
nce0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInsta
nce(NativeConstructorAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newI
nstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constru
ctor.java:499)
        at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.j
ava:128)
        at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(Reflecti
onFactory.java:350)
        at java.base/java.lang.Class.newInstance(Class.java:642)
        at java.logging/java.util.logging.LogManager.createLoggerHandlers(LogMan
ager.java:1000)
        at java.logging/java.util.logging.LogManager$4.run(LogManager.java:970)
        at java.logging/java.util.logging.LogManager$4.run(LogManager.java:966)
        at java.base/java.security.AccessController.doPrivileged(AccessControlle
r.java:312)
        at java.logging/java.util.logging.LogManager.loadLoggerHandlers(LogManag
er.java:966)
        at java.logging/java.util.logging.LogManager.initializeGlobalHandlers(Lo
gManager.java:2417)
        at java.logging/java.util.logging.LogManager$RootLogger.accessCheckedHan
dlers(LogManager.java:2511)
        at java.logging/java.util.logging.Logger.getHandlers(Logger.java:2089)
        at nxt.util.BriefLogFormatter.init(BriefLogFormatter.java:47)
        at nxt.util.Logger.<clinit>(Logger.java:92)
        at nxt.Nxt$Init.<clinit>(Nxt.java:355)
        at nxt.Nxt.init(Nxt.java:329)
        at nxt.Nxt.main(Nxt.java:316)
2021-04-25 14:51:58 INFO: nxt.enableStackTraces = "true"
2021-04-25 14:51:58 INFO: nxt.enableLogTraceback = "false"
2021-04-25 14:51:58 INFO: logging enabled
2021-04-25 14:51:58 INFO: socksProxyHost not defined
2021-04-25 14:51:58 INFO: socksProxyPort not defined
2021-04-25 14:51:58 FINE: java.version = 16.0.1
2021-04-25 14:51:58 FINE: java.vm.version = 16.0.1+9-24
2021-04-25 14:51:58 FINE: java.vm.name = OpenJDK 64-Bit Server VM
2021-04-25 14:51:58 FINE: java.vendor = Oracle Corporation
2021-04-25 14:51:58 FINE: java.vm.vendor = Oracle Corporation
2021-04-25 14:51:58 FINE: java.home = C:\Program Files\NXT\jdk
2021-04-25 14:51:58 FINE: java.library.path = C:\Program Files\NXT\jdk\bin;C:\WI
NDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin64\usr\local\bin;C:\c
ygwin64\bin;C:\Program Files\Amazon Corretto\jdk1.8.0_292\bin;C:\Program Files (
x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program File
s\Alacritty;C:\Program Files\AdoptOpenJDK\jre-11.0.7.10-hotspot\bin;C:\tools\rub
y25\bin;C:\tools\ruby26\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\W
bem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Pr
ogram Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs;C:\Pro
gramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\AdoptOpenJDK\j
dk8u192-b12\bin;C:\Program Files\Java\jdk1.8.0_221\bin;C:\Android\android-sdk\to
ols;C:\Android\android-sdk\platform-tools;C:\Android\android-sdk\tools\bin;C:\Pr
ogramData\nvm;C:\Program Files\nodejs;C:\Users\sando\AppData\Local\Programs\Pyth
on\Python38;C:\Users\sando\AppData\Local\Programs\Python\Python38\Scripts;C:\Pro
gramData\ComposerSetup\bin;C:\Program Files (x86)\Subversion\bin;C:\Program File
s\PowerShell\7-preview\preview;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLIS
R;C:\Program Files\PuTTY;C:\Program Files (x86)\Calibre2;C:\Program Files\Window
sPowerShell\Scripts;C:\Program Files\Symfony;C:\Strawberry\c\bin;C:\Strawberry\p
erl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\P
rogram Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bi
n;C:\Program Files\dotnet;C:\Program Files (x86)\EasyFrom Inc;C:\Program Files (
2021-04-25 14:51:58 INFO: nxt.includeExpiredPrunable = "true"
2021-04-25 14:51:58 INFO: nxt.correctInvalidFees = "false"
2021-04-25 14:51:58 INFO: nxt.disableFullTextSearch = "false"
2021-04-25 14:51:58 INFO: nxt.disableMetadataDetection = "false"
2021-04-25 14:51:58 INFO: nxt.statementLogThreshold = "10000"
2021-04-25 14:51:58 INFO: nxt.transactionLogThreshold = "15000"
2021-04-25 14:51:58 INFO: nxt.transactionLogInterval = "15"
2021-04-25 14:51:58 INFO: nxt.dbCacheKB = "0"
2021-04-25 14:51:58 INFO: nxt.dbUrl not defined
2021-04-25 14:51:58 INFO: nxt.dbType = "h2"
2021-04-25 14:51:58 INFO: nxt.dbDir = "./nxt_db/nxt"
2021-04-25 14:51:58 INFO: nxt.dbParams = "DB_CLOSE_ON_EXIT=FALSE"
2021-04-25 14:51:58 INFO: nxt.dbUsername = "sa"
2021-04-25 14:51:58 INFO: nxt.dbPassword = "{not logged}"
2021-04-25 14:51:58 INFO: nxt.maxDbConnections = "30"
2021-04-25 14:51:58 INFO: nxt.dbLoginTimeout = "70"
2021-04-25 14:51:58 INFO: nxt.dbDefaultLockTimeout = "60"
2021-04-25 14:51:58 INFO: nxt.dbMaxMemoryRows = "1000000"
2021-04-25 14:51:58 FINE: Database jdbc url set to jdbc:h2:./nxt_db/nxt;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=262144 username sa
2021-04-25 14:51:58 INFO: nxt.connectionPoolImpl = "nxt.db.pool.H2ConnectionPool"
2021-04-25 14:51:59 INFO: nxt.useStrongSecureRandom = "false"
org.h2.message.DbException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
org.h2.message.DbException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
        at org.h2.message.DbException.get(DbException.java:194)
        at org.h2.message.TraceSystem.logWritingError(TraceSystem.java:294)
        at org.h2.message.TraceSystem.openWriter(TraceSystem.java:315)
        at org.h2.message.TraceSystem.writeFile(TraceSystem.java:263)
        at org.h2.message.TraceSystem.write(TraceSystem.java:247)
        at org.h2.message.Trace.error(Trace.java:194)
        at org.h2.engine.Database.openDatabase(Database.java:325)
        at org.h2.engine.Database.<init>(Database.java:301)
        at org.h2.engine.Engine.openSession(Engine.java:74)
        at org.h2.engine.Engine.openSession(Engine.java:192)
        at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
        at org.h2.engine.Engine.createSession(Engine.java:166)
        at org.h2.engine.Engine.createSession(Engine.java:29)
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:152)
        at org.h2.Driver.connect(Driver.java:69)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:189)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:384)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:234)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
        at nxt.db.pool.H2ConnectionPool.getConnection(H2ConnectionPool.java:38)
        at nxt.db.BasicDb.getPooledConnection(BasicDb.java:196)
        at nxt.db.BasicDb.init(BasicDb.java:147)
        at nxt.Db.init(Db.java:40)
        at nxt.Nxt$Init.<clinit>(Nxt.java:361)
        at nxt.Nxt.init(Nxt.java:329)
        at nxt.Nxt.main(Nxt.java:316)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program
 Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        ... 29 more
Caused by: org.h2.message.DbException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.get(DbException.java:205)
        at org.h2.message.DbException.get(DbException.java:181)
        at org.h2.store.fs.FilePathDisk.createDirectory(FilePathDisk.java:290)
        at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:43)
        at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:315)
        at org.h2.message.TraceSystem.openWriter(TraceSystem.java:305)
        ... 26 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        ... 32 more
2021-04-25 14:52:01 SEVERE: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la crÚation du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
java.lang.RuntimeException: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la crÚation du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at nxt.db.BasicDb.init(BasicDb.java:152)
        at nxt.Db.init(Db.java:40)
        at nxt.Nxt$Init.<clinit>(Nxt.java:361)
        at nxt.Nxt.init(Nxt.java:329)
        at nxt.Nxt.main(Nxt.java:316)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la crÚation du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        at org.h2.message.DbException.get(DbException.java:205)
        at org.h2.message.DbException.get(DbException.java:181)
        at org.h2.store.fs.FilePathDisk.createDirectory(FilePathDisk.java:290)
        at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:43)
        at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:315)
        at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:73)
        at org.h2.engine.Database.getPageStore(Database.java:2659)
        at org.h2.engine.Database.open(Database.java:675)
        at org.h2.engine.Database.openDatabase(Database.java:307)
        at org.h2.engine.Database.<init>(Database.java:301)
        at org.h2.engine.Engine.openSession(Engine.java:74)
        at org.h2.engine.Engine.openSession(Engine.java:192)
        at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
        at org.h2.engine.Engine.createSession(Engine.java:166)
        at org.h2.engine.Engine.createSession(Engine.java:29)
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:152)
        at org.h2.Driver.connect(Driver.java:69)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:189)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:384)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:234)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
        at nxt.db.pool.H2ConnectionPool.getConnection(H2ConnectionPool.java:38)
        at nxt.db.BasicDb.getPooledConnection(BasicDb.java:196)
        at nxt.db.BasicDb.init(BasicDb.java:147)
        ... 4 more
2021-04-25 14:52:01 INFO: Shutting down...
2021-04-25 14:52:01 INFO: nxt.addOns not defined
2021-04-25 14:52:01 INFO: nxt.adminPassword not defined
2021-04-25 14:52:01 INFO: nxt.maxAPIRecords = "100"
2021-04-25 14:52:01 INFO: nxt.enableAPIUPnP = "false"
2021-04-25 14:52:01 INFO: nxt.apiServerIdleTimeout = "30000"
2021-04-25 14:52:01 INFO: nxt.apiServerCORS = "true"
2021-04-25 14:52:01 INFO: nxt.forwardedForHeader not defined
2021-04-25 14:52:01 INFO: nxt.allowedBotHosts = "127.0.0.1; localhost; [0:0:0:0:0:0:0:1];"
2021-04-25 14:52:01 INFO: nxt.enableAPIServer = "true"
2021-04-25 14:52:01 INFO: nxt.apiServerPort = "7876"
2021-04-25 14:52:01 INFO: nxt.apiServerSSLPort = "7876"
2021-04-25 14:52:01 INFO: nxt.apiServerHost = "127.0.0.1"
2021-04-25 14:52:01 INFO: nxt.disableAdminPassword = "false"
2021-04-25 14:52:02 INFO: nxt.apiSSL = "false"
2021-04-25 14:52:02 INFO: API server using HTTP port 7876
2021-04-25 14:52:02 INFO: nxt.apiResourceBase = "./html/www"
2021-04-25 14:52:02 INFO: nxt.apiWelcomeFile = "index.html"
2021-04-25 14:52:02 INFO: nxt.javadocResourceBase = "./html/doc"
2021-04-25 14:52:02 INFO: nxt.maxUploadFileSize not defined or not numeric, using default value 0
2021-04-25 14:52:02 INFO: nxt.maxUploadFileSize not defined or not numeric, using default value 0
2021-04-25 14:52:02 INFO: nxt.enableAPIServerGZIPFilter not defined, using default false
2021-04-25 14:52:02 INFO: nxt.apiFrameOptionsSameOrigin = "true"
2021-04-25 14:52:02 INFO: nxt.apiCustomSetupImpl not defined
2021-04-25 14:52:02 INFO: nxt.allowedUserHosts = "127.0.0.1; localhost; [0:0:0:0:0:0:0:1];"
2021-04-25 14:52:02 INFO: nxt.enableUIServer = "false"

[...]

2021-04-25 14:52:02 INFO: nxt.wellKnownPeers not defined
2021-04-25 14:52:02 INFO: nxt.knownBlacklistedPeers not defined
2021-04-25 14:52:02 INFO: nxt.maxNumberOfInboundConnections = "2000"
2021-04-25 14:52:02 INFO: nxt.maxNumberOfOutboundConnections = "50"
2021-04-25 14:52:02 INFO: nxt.maxNumberOfConnectedPublicPeers = "20"
2021-04-25 14:52:02 INFO: nxt.maxNumberOfKnownPeers = "2000"
2021-04-25 14:52:02 INFO: nxt.minNumberOfKnownPeers = "1000"
2021-04-25 14:52:02 INFO: nxt.connectTimeout = "10000"
2021-04-25 14:52:02 INFO: nxt.readTimeout = "20000"
2021-04-25 14:52:02 INFO: nxt.enableHallmarkProtection = "true"
2021-04-25 14:52:02 INFO: nxt.pushThreshold = "0"
2021-04-25 14:52:02 INFO: nxt.pullThreshold = "0"
2021-04-25 14:52:02 INFO: nxt.useWebSockets = "true"
2021-04-25 14:52:02 INFO: nxt.webSocketIdleTimeout = "900000"
2021-04-25 14:52:02 INFO: nxt.enablePeerServerGZIPFilter = "true"
2021-04-25 14:52:02 INFO: nxt.blacklistingPeriod = "600000"
2021-04-25 14:52:02 INFO: nxt.communicationLoggingMask = "0"
2021-04-25 14:52:02 INFO: nxt.sendToPeersLimit = "10"
2021-04-25 14:52:02 INFO: nxt.usePeersDb = "true"
2021-04-25 14:52:02 INFO: nxt.savePeers = "true"
2021-04-25 14:52:02 INFO: nxt.getMorePeers = "true"
2021-04-25 14:52:02 INFO: nxt.cjdnsOnly = "false"
2021-04-25 14:52:02 INFO: nxt.ignorePeerAnnouncedAddress = "false"
2021-04-25 14:52:02 INFO: nxt.trimFrequencyMultiplier.account not defined or not numeric, using default value 1
org.h2.message.DbException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
org.h2.message.DbException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
        at org.h2.message.DbException.get(DbException.java:194)
        at org.h2.message.TraceSystem.logWritingError(TraceSystem.java:294)
        at org.h2.message.TraceSystem.openWriter(TraceSystem.java:315)
        at org.h2.message.TraceSystem.writeFile(TraceSystem.java:263)
        at org.h2.message.TraceSystem.write(TraceSystem.java:247)
        at org.h2.message.Trace.error(Trace.java:194)
        at org.h2.engine.Database.openDatabase(Database.java:325)
        at org.h2.engine.Database.<init>(Database.java:301)
        at org.h2.engine.Engine.openSession(Engine.java:74)
        at org.h2.engine.Engine.openSession(Engine.java:192)
        at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
        at org.h2.engine.Engine.createSession(Engine.java:166)
        at org.h2.engine.Engine.createSession(Engine.java:29)
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:152)
        at org.h2.Driver.connect(Driver.java:69)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:189)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:384)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:234)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
        at nxt.db.pool.H2ConnectionPool.getConnection(H2ConnectionPool.java:38)
        at nxt.db.BasicDb.getPooledConnection(BasicDb.java:196)
        at nxt.db.BasicDb.getConnection(BasicDb.java:190)
        at nxt.db.TransactionalDb.getConnection(TransactionalDb.java:62)
        at nxt.db.TrimmableDbTable.checkFastTrimIndex(TrimmableDbTable.java:64)
        at nxt.db.TrimmableDbTable.<init>(TrimmableDbTable.java:45)
        at nxt.db.EntityDbTable.<init>(EntityDbTable.java:42)
        at nxt.db.VersionedEntityDbTable.<init>(VersionedEntityDbTable.java:33)
        at nxt.Account$2.<init>(Account.java:473)
        at nxt.Account.<clinit>(Account.java:473)
        at nxt.peer.Peers.<clinit>(Peers.java:766)
        at nxt.Nxt.shutdown(Nxt.java:341)
        at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur du fichier journal: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program
 Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]"
Log file error: "C:/Program Files/NXT/nxt_db/nxt.trace.db", cause: "org.h2.message.DbException: Erreur lors de la création du fichier ""C:/Program Files/NXT/nxt_db""
Error while creating file ""C:/Program Files/NXT/nxt_db"" [90062-200]" [90034-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        ... 35 more
Caused by: org.h2.message.DbException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.get(DbException.java:205)
        at org.h2.message.DbException.get(DbException.java:181)
        at org.h2.store.fs.FilePathDisk.createDirectory(FilePathDisk.java:290)
        at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:43)
        at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:315)
        at org.h2.message.TraceSystem.openWriter(TraceSystem.java:305)
        ... 32 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        ... 38 more
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
        at nxt.peer.Peers.<clinit>(Peers.java:766)
        at nxt.Nxt.shutdown(Nxt.java:341)
        at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.RuntimeException: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at nxt.db.TrimmableDbTable.checkFastTrimIndex(TrimmableDbTable.java:135)
        at nxt.db.TrimmableDbTable.<init>(TrimmableDbTable.java:45)
        at nxt.db.EntityDbTable.<init>(EntityDbTable.java:42)
        at nxt.db.VersionedEntityDbTable.<init>(VersionedEntityDbTable.java:33)
        at nxt.Account$2.<init>(Account.java:473)
        at nxt.Account.<clinit>(Account.java:473)
        ... 3 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Erreur lors de la création du fichier "C:/Program Files/NXT/nxt_db"
Error while creating file "C:/Program Files/NXT/nxt_db" [90062-200]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
        at org.h2.message.DbException.get(DbException.java:205)
        at org.h2.message.DbException.get(DbException.java:181)
        at org.h2.store.fs.FilePathDisk.createDirectory(FilePathDisk.java:290)
        at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:43)
        at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:315)
        at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:73)
        at org.h2.engine.Database.getPageStore(Database.java:2659)
        at org.h2.engine.Database.open(Database.java:675)
        at org.h2.engine.Database.openDatabase(Database.java:307)
        at org.h2.engine.Database.<init>(Database.java:301)
        at org.h2.engine.Engine.openSession(Engine.java:74)
        at org.h2.engine.Engine.openSession(Engine.java:192)
        at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171)
        at org.h2.engine.Engine.createSession(Engine.java:166)
        at org.h2.engine.Engine.createSession(Engine.java:29)
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:173)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:152)
        at org.h2.Driver.connect(Driver.java:69)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:189)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:384)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:234)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
        at nxt.db.pool.H2ConnectionPool.getConnection(H2ConnectionPool.java:38)
        at nxt.db.BasicDb.getPooledConnection(BasicDb.java:196)
        at nxt.db.BasicDb.getConnection(BasicDb.java:190)
        at nxt.db.TransactionalDb.getConnection(TransactionalDb.java:62)
        at nxt.db.TrimmableDbTable.checkFastTrimIndex(TrimmableDbTable.java:64)
        ... 8 more

As concern the issue with nxt-starter-kit I solved it by updating the installer folder of the start kit, with the one of nxt!

I replaced this folder:
https://bitbucket.org/Jelurida/nxt-clone-starter/src/master/installer/

By this one:
https://bitbucket.org/Jelurida/nxt/src/master/installer/

Hi,
I am no expert but noticed the /nxt/nxt/ in the pathway from the 2nd log file. From memory there was an issue with nxt when this pathway was created with nxt/nxt. So empty the second folder into the first to solve.

From last log file, I thought the nxt_db file should be in
C:\Users\username\AppData\Roaming\nxt\nxt_db

Again I have no idea, but noticed the differences to my past experience with nxt

The Nxt runtime is trying to create files in the C:\Program Files\NXT folder which is read only.
To resolve it you need to run it in desktop mode.

Under C:\Program Files\NXT in the resource folder you should have a file named nxt.properties with the following content:
# This file in internal configuration file used by nxt.exe, this is not the NXT properties file located in the user's home directory
# Therefore do not modify this file
PathJRE=jdk
PersonalOptions=-server -Dnxt.runtime.mode=desktop -Dnxt.redirect.system.out=true -Dnxt.redirect.system.err=true

This file is used by nxt.exe to compose the Java command line.
Is it there?

@TimmyTendies at the end I managed this issue with jdk.runtime not found, I was just missing this file.

@lior.yaffe
There is this file /resource/nxt.proprieties

And it already contains this:

# This file in internal configuration file used by nxt.exe, this is not the NXT properties file located in the user's home directory
# Therefore do not modify this file
PathJRE=jdk
PersonalOptions=-server -Dnxt.runtime.mode=desktop -Dnxt.redirect.system.out=true -Dnxt.redirect.system.err=true

It also contains the jdk folder.