[Bug Report] Running as a service trough NSSM doesn't work
Closed this issue · 5 comments
adriaN7812 commented
Bug Description
Steps to Reproduce
Did all the steps from the instuctions
Expected Result
Expected to work
Debug Output
.
Additional Info
No response
Checklist
- I have looked for information about this within the documentation
- I have searched for similar issues on the issues page
- I am running the latest version of the bot:
jagrosh commented
Do you have Java 11 installed, and is it the default Java version?
adriaN7812 commented
fossmanbill commented
Can you type "nssm edit JMusicBot" and show a screenshot from there?
digitalcontemplation commented
I have searched for similar issues on the issues page
I had the same issue before and found this to be my solution:
chilux00 commented on Oct 29, 2023
- Run nssm edit JMusicBot to bring up the GUI for editing the service. You should see three editable text fields pop up.
- For the first field, "Path", set this to the path of your java.exe. This is probably in your program files so you can find it in your C:\ drive.
- For the second field "Startup Directory", set this to the path of the working directory folder (i.e the folder where your JMusicBot file is), something like C:\Users<User Name>\Documents<Folder Name>
- For the last field "Arguments", you want to append -jar and set it to the exact path of your music bot .jar file, so something like -jar C:\Users<User Name>\Documents<Folder Name>\JMusicBot-0.3.9.jar. If you've renamed your .jar file, change this accordingly.
adriaN7812 commented
Fixed it but don't know exactly which change that i made that fixed it.
I changed to Java 11 from Oracle , and did the nssm edit changes.