Bladimir Silva Toro Active Member Licensed User Longtime User Mar 6, 2018 #1 Hello friends I already finished my application in B4A using jRDC2. I wanted to know how to launch the jRDC2 without my client having installed B4J on his computer, would there be a BAT file like RunRLC from the old RDC version? Thank you so much for your valuable colaboration.
Hello friends I already finished my application in B4A using jRDC2. I wanted to know how to launch the jRDC2 without my client having installed B4J on his computer, would there be a BAT file like RunRLC from the old RDC version? Thank you so much for your valuable colaboration.
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2018 #2 Create a batch file with: Code: java -jar jRDC2.Jar Note that you can also double click on the jar to run it though it is less recommended for server solutions. Upvote 0
Create a batch file with: Code: java -jar jRDC2.Jar Note that you can also double click on the jar to run it though it is less recommended for server solutions.
Bladimir Silva Toro Active Member Licensed User Longtime User Mar 6, 2018 #3 Thanks Erel It works perfectly, since the database is in Windows Server it is possible that this BAT file runs as a Windows service. How this be possible? Thank you. Upvote 0
Thanks Erel It works perfectly, since the database is in Windows Server it is possible that this BAT file runs as a Windows service. How this be possible? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2018 #5 I wasn't familiar with NSSM. Looks useful and it supports batch files: https://nssm.cc/scenarios Upvote 0
OliverA Expert Licensed User Longtime User Mar 7, 2018 #6 Erel said: Looks useful and it supports batch files Click to expand... Actually I use a batch file to start the service, since I could not get the stdout/stderr redirection that is provided by NSSM to work properly (I was hoping to use the log rotation facilities of NSSM). Example batch file content: Code: java -jar somejar.jar > logs\stdout.txt 2> logs\stderr.txt Upvote 0
Erel said: Looks useful and it supports batch files Click to expand... Actually I use a batch file to start the service, since I could not get the stdout/stderr redirection that is provided by NSSM to work properly (I was hoping to use the log rotation facilities of NSSM). Example batch file content: Code: java -jar somejar.jar > logs\stdout.txt 2> logs\stderr.txt