Making Spigot from FTP Work with my Computer

Since I had problems installing Spigot from Buildtools, I decided to open a server on a free hosting website and grab the Spigot files from there. Now all of the Spigot files are on my hard drive.

I tried to open spigot.jar, but it won't open.

I would like to open the spigot.jar file and run it successfully on a Minecraft server. Is this possible using the method above?


The spigot website has an excellent tutorial on this: https://www.spigotmc.org/wiki/spigot-installation/#installation

For short it says you need to make a file ending .bat containing:

java -Xms512M -Xmx1024M -XX:MaxPermSize=128M -jar spigot.jar

in the folder where the spigot.jar is

Then run that file instead of the spigot.jar.