开发者

I Cant get a .jar file to run after being double clicked on windows 7

开发者 https://www.devze.com 2023-02-16 20:49 出处:网络
i have tried several things so far, i have used a .bat 开发者_如何转开发file to run it, and it opens up the command prompt, but closes right after opening. i have a manifest.txt file already created a

i have tried several things so far, i have used a .bat 开发者_如何转开发file to run it, and it opens up the command prompt, but closes right after opening. i have a manifest.txt file already created along with the .jar. If i type -java -jar DesktopApplicationRunner.jar in a command windows that is already up it will run the program.

my .bat currently says: -java -jar DesktopApplicationRunner.jar


  • Apologies just read your comment saying you have inputs. your problem is using the bat file, unless you have user inputs, the application will start, open the command line, then close when finished, the best way is to manually type in the command line, so it doesn't close the view down afterwards, sorry if this makes no sense. -Ian
0

精彩评论

暂无评论...
验证码 换一张
取 消