Hi,
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 Blynk
-
inside that one called data
-
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