Not 100% certain if this is the best place to search for help on this issue.
However, I recently started playing SkyFactory 2.5 through the CurseForge launcher and I've been wanting to play it with a friend. My problem, though, is that upon trying to launch the server jar through a start.bat file, it fails.
I get the error "unable to access jarfile nogui".
Nothing I've found through scouring other forums and general search results have resolved this issue.
Does anyone have any insight on this issue?
-Attached are a screenshot of the error and the server start files as included in the server files when downloaded through the link in the launcher.
-Edit: I forgot to mention that the server does launch correctly if launched by executing the forge universal file and my friend and I have been able to play together when launched this way, however I feel like I should be launching it with the batch file so it may get the parameters set in it like RAM allocation, etc.
I've tried this and get "A problem occurred running the Server launcher launcher.java.lang.reflect.InvocationTargetException" which is pretty lengthy so I'm including a screenshot of it attached to this response.
I see this error online in association with mismatched versions of Java. Perhaps there are multiple installations of Java and it's using the wrong one, or perhaps an older version of Java 8 is needed - I'm really not sure!
Edit: here's a thread on that error with suggestions.
Unfortunately, this thread you linked didn't resolve my issue. Also I believe they are referring to a version of Java that I cannot find or they made a typo as I don't believe 18.104.22.168 exists. I might be wrong on that, however.
To further add on to this conundrum, if I run the serverStart.bat file as administrator, I get the message "'settings.bat' is not recognized as an internal or external command, operable program or batch file." (screenshot attached to this message).
I think I may have found the issue. I had AdoptOpenJDK installed on my system which was causing my Java path to direct to it instead of the correct directory for Java. Removing this has since allowed me to start the server from a batch file with all the parameters it requires.
However, I'm unsure if this will cause issues with the IDE I use for, ironically I'll admit, the Java class I am studying in.
I don't recall installing AdoptOpenJDK but I must have since it was there.
I found this by running the command java -version from command prompt and found that it read "Open JDK". Interestingly, changing the environment variables in Windows to reflect the correct Java jre path did not fix this on its own.
Anyway, I would consider this resolved at this time.
Hopefully this will help someone else in the future with the same issue.
Probably the easiest way to have both installations is to restore AdoptOpenJDK as the default installation, and edit line 7 of ServerStart.bat to replace "java" with the path to the java.exe that allowed the server to run. Your path may differ from my example: