Start Java Class from embedded library inside Spring Boot executable jar -
is possible start different java class (with main method) in spring boot executable jar declared mainclass?
speciality: class should started located in library embedded in executable jar (inside lib folder).
background information:
the executable jar contains library class call gracefully shutdown application. library embedded inside executable jars lib folder , not accessible default java classpath parameter.
see reply: https://stackoverflow.com/a/2023544/1499549. need specify class after defining jar file on classpath.
java -cp myapp.jar com.example.main1
Comments
Post a Comment