I have a simple jarfile that contains the code for my Discord bot. When I double click it, it works perfectly. I can see the bot comes online and that the javaw.exe shows up in task manager. That's the only way I can see it's working and I can't see any errors or anything. It just runs in the background. How can I make it where when I double click it, it runs just like you ran it from a batch file (just like here: Running a .jar file in a command prompt from double click)? I would like to do this without messing with batch files. I would just like one jarfile and that's it. Is there some kind of code I can use in the jarfile to make it run in the command line automatically without having to enter the command or use a batch file? Maybe if I could use Runtime.getRuntime().exec("cmd /c start java -jar <jarfile>); but somehow make it all work in one jarfile?
