title: How to load my localhost java spring boot web app from an executable file
body: <p>I have a spring boot web application in Java and which uses front end libraries/framework like Angular/React. Suppose my web app URL is <a href="http://localhost:8080/xyz" rel="nofollow noreferrer">http://localhost:8080/xyz</a>. I need to create an executable file(platform independent) and when I click on it then it should open my web app in browser window and the application should start. Can someone tell how can I achieve this.</p>
  
  <p><strong>EDIT :</strong> <strong>I just want something clickable on my desktop and upon clicking on it will run the application and then it will open the browser window which will load the web app url and user can hit/do rest of things as a normal web app.So the clickable icon should function as a desktop app but functionality is to run the java web app and open it in browser.</strong></p>
  
  <p>Adding pom.xml here , which i used in my app.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;proman&lt;/artifactId&gt;
          &lt;groupId&gt;com.upgrad.proman&lt;/groupId&gt;
          &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;artifactId&gt;proman-api&lt;/artifactId&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.upgrad.proman&lt;/groupId&gt;
              &lt;artifactId&gt;proman-service&lt;/artifactId&gt;
              &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.swagger&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
              &lt;version&gt;1.5.18&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;2.6.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
              &lt;version&gt;2.6.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;2.6.1&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
              &lt;version&gt;2.6.1&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.auth0&lt;/groupId&gt;
              &lt;artifactId&gt;java-jwt&lt;/artifactId&gt;
              &lt;version&gt;3.4.0&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                      &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.3.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;output&gt;${project.build.directory}/generated-sources&lt;/output&gt;
                          &lt;language&gt;spring&lt;/language&gt;
                          &lt;library&gt;spring-boot&lt;/library&gt;
                          &lt;generateApis&gt;false&lt;/generateApis&gt;
                          &lt;generateModels&gt;true&lt;/generateModels&gt;
                          &lt;modelPackage&gt;com.upgrad.proman.api.model&lt;/modelPackage&gt;
                          &lt;configOptions&gt;
                              &lt;java8&gt;true&lt;/java8&gt;
                              &lt;sourceFolder&gt;.&lt;/sourceFolder&gt;
                              &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
  
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                  &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                          &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
                          &lt;version&gt;1.5.18&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                          &lt;artifactId&gt;swagger-codegen-generators&lt;/artifactId&gt;
                          &lt;version&gt;1.0.0-rc0&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;signup&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;inputSpec&gt;${project.basedir}/src/main/resources/endpoints/signup.json&lt;/inputSpec&gt;
                              &lt;language&gt;spring&lt;/language&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;useradmin&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;inputSpec&gt;${project.basedir}/src/main/resources/endpoints/useradmin.json&lt;/inputSpec&gt;
                              &lt;language&gt;spring&lt;/language&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;authentication&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;inputSpec&gt;${project.basedir}/src/main/resources/endpoints/authentication.json&lt;/inputSpec&gt;
                              &lt;language&gt;spring&lt;/language&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>