![]() ![]() ![]() Start jar file with next command (you can change port, 5005 was default in my Intellij Idea): java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 your_jar_file.To solve this issue and to have an ability to debug the source code when it is packaged in the jar file it is possible to launch a jar file in the "debug mode" (sorry if my terminology is wrong) and then attach Intellij Idea to the running jar (JVM to be precise). For Intellij IDEA version 11.0.2 File Project Structure Artifacts then you have to press alt+insert or click the plus symbol and design new artifact pick -> jar -> From modules with dependencies. Running CloudML code from jar file hinders my ability to debug the code if something goes wrong because I am not running some main() method from the Intellij Idea, but launching a jar file from the console (Alt + F12). To all those having problems, I finally figured out why IntelliJ can fail at making a working executable jar: In my case, it was because IntelliJ was extracting all my dependencies into the output jar (good), which ended up overwritting the /META-INF/MANIFEST.MF file with something from one of my dependencies (bad). Most common way to deploy an application in CloudML (a few interfaces are available) is to launch cloudml-shell.jar file and then execute deploy command from the command line. I am working right now on CloudML project - a deployment engine for the provisioning and deployment of multi-cloud applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |