Click2Sync Windows Service Wrapper for Java Implementations with WinRun4J
- Windows 32/64-bit
- Java 32/64-bit
- Download org.boris.winrun4j classes
- Include them in your Java project
- Inherit from AbstractService like the ServiceTest test of https://github.com/poidasmith/winrun4j/blob/master/org.boris.winrun4j.test/java/src/org/boris/winrun4j/test/ServiceTest.java
- Swap file names of C2SRCSVC.exe to C2SRCSVC_32.exe and C2SRCSVC_64.exe to C2SRCSVC.exe if you want to work with 64 Java
- Copy folder to C:\ or to Program Files
- installservice.bat
- Configure Task scheduler to execute logrotate command every day
- Configure Task scheduler to execute "net start c2ssb1srvc" and execute it everytime you consider appropriate
- uninstallservice.bat
- remove scheduled task for logrotation
- Remove Folder C:\installationfolder or Program Files\installationfolder
- check logs folder if last file is changed frequently (it should change at least every minute)
- if logrotation is working ok, logs should never be bigger than 6 log files and no bigger than a GB, if anything is not working like this, we have logrotation bad configured
- config.properties for Java integration parameters (if changing properties, service needs to be restarted)
- C2SRCSVC.ini for changing Java Path, dlls paths, Windows Service Configurations, log paths, etc. (if changing properties, service needs to be restarted)