I ended up reading through the issue so the first line (saying I hadn’t) seemed out of place and it wont let me do a markdown strikethrough to show it was there but changed. Anyway… I noticed one part i can answer easily for you, and the rest should get you going i hope. if not go back to Github and ignore the simple start and go for the not so simple but more comprehensive an likely to work one.
Actually; those instructions aren’t really helpful unless you’d already done what i suggest… and are a java developer. If this Doesn’t work, there’s a docker container which does work and doesn’t need you to know java so reply if needs be and I’ll put instructions for that up here or you (unless you know docker in which case it’s
docker pull mpherg/blynk-server)
To answer a question you kind of asked: Java doesn’t produce .exe files, you run the output either through a command prompt as you already have or create a a new shortcut and put that same command in he box where you would put the location the shortcut to point to and that should work
If you’re interested why, the first word
java is actually shorthand for the
java.exe file that you installed when you installed the SDK, This is the executable you’re running, and it’s called a virtual machine or JVM, which lets that java code in the .jar file run on windows or mac or linux, hey each have an individual JVM so developers can write one program and run it wherever.
This means that everything after that are command switches and arguments being passed to the java executable; so
java -jar something.jar would be telling Java to expect a .jar file, and the name of that file as well as a path to it if you’re not in the folder where that .jar file is.
So if you were to create a shortcut for the start menu, you would have to add some additional information.
Actually looking at the code, i’d suggest that you do the following:
(note: I haven’t used a windows computer for longer than about 25 minutes a about 5 years but i also did do windows desktop support as a job for over 5, so lets see if that balances out!)
make a folder in your home directory called
inside that one called
then copy the
server-0.15.3.jar file into the blynk folder
then try this exact command,
–Don’t forget that the file and folder names are case sensitive and the %blahblah% bits will be replaced by windows when it runs the command with the location of the currently logged in user’s home folder
java -jar “%UserProfile%/Blynk/server-0.15.3.jar” -dataFolder “%UserProfile%/Blynk/data”
if it works from run copy and paste it into a new shortcut on your desktop and either leave it there or drag it to somewhere else like the start menu if you’d prefer that
I think -dataFolder must be for the location where it should look for the your data used to populae the server, your opions and dashboards etc, the only reference i could fine online was here on github which seems to be the actual java file used to make it work it looks like a webservice thing so i guess thats what it is, this las paragraph doesn’t need to an action, it was just FYI