I am trying to launch my JAR , that contains spring-boot API , through JNPL but I am getting :
java.lang.IllegalStateException: Unable to determine code source archive from \\localhost:8080\webstart\printer-api\printer-api.jar
at org.springframework.boot.loader.Launcher.createArchive(Launcher.java:126)
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:38)
at org.springframework.boot.loader.JarLauncher.<init>(JarLauncher.java:35)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
My JNLP file is this :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/webstart/printer-api" href="printer-api.jnlp">
<information>
<title>PrinterAPi</title>
<vendor>ADM</vendor>
<homepage href="http://localhost:8080/webstart/printer-api"/>
<description>Web Start</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="printer-api.jar" />
</resources>
<application-desc main-class="org.springframework.boot.loader.JarLauncher" />
</jnlp>
I have also find what cause the problem in this : Exception when using Spring Boot and Java Web Start (JNLP)
But there was not provide any exact way to solve the problem .
Can anyone help me with a convenient path to Launch JAR(Sprint-Boot API) through Java Web Start/JNPL ?