I created an executable jar file from jsmooth. I created an exe from inno setup and added the below code in run block to add my executable jar to windows service
Filename: "{sys}\sc.exe"; Parameters: "create service-name start= auto binPath= ""{app}\application-name.exe""";
It is adding to windows service but I am getting 1053 error when I try to start my service
Related
When I try to add a new project interpreter using docker compose service - I get following error:
No such file or directory in configuration files
After creating directory structure for Drupal9,
ddev config --project-type=drupal9 --docroot=web --create-docroot
i created the project, a Drupal distribution Varbase Starter Kit in this directory using ddev:
ddev composer create Vardot/varbase-project:~9 --no-dev --no-interaction
I did the necessary configurations and changed the name and docroot (note: Varbase uses the directory called docroot instead of web) of the project in config.yaml
Then while i was trying to install the distribution via browser i had a warning telling me that PHP extension YAML is missing.
So according to instructions in ddev documentation i added the package to Docker image by adding the following line to config.yaml:
webimage_extra_packages: [php-yaml]
Then in order to enable the extension i created a php directory in .ddev directory and added my configuration with an .ini file that contains the following lines:
[PHP]
extension=yaml.so
I restarted ddev but YAML extension was still not enabled.
I checked and saw that php-yaml package was successfully installed but was not enabled.
when i list the PHP modules with the command ddev php -m yaml is not listed and i get the following warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'yaml.so' (tried: /usr/lib/php/20200930/yaml.so (/usr/lib/php/20200930/yaml.so: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/yaml.so.so (/usr/lib/php/20200930/yaml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
It seems that yaml.so file cannot be found (or accessed?) so it cannot be enabled.
How can I fix this?
I'm using Linux Mint (LMDE5) and website is Drupal9 with PHP 8.0, nginx-fpm, mariadb 10.3
The package you want is just php8.0-yaml, so in .ddev/config.yaml:
webimage_extra_packages: [php8.0-yaml]
No additional configuration is required (you don't have to change php configuration) just ddev restart. After you do that you'll see yaml listed in ddev php -i
I have a Grails application that I run as a Linux service. Basically I create a symlink from /etc/init.d/mygrailsservice to mygrailsservice.jar.
I want to increase the amount of OS memory allocated to the service.
How do I configure this?
Have a look at the spring-boot docs for executable jars and using them as system services - https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html
Specifically https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html#deployment-script-customization-when-it-runs
With the exception of JARFILE and APP_NAME, the above settings can be
configured using a .conf file. The file is expected next to the jar
file and have the same name but suffixed with .conf rather than .jar.
For example, a jar named /var/myapp/myapp.jar will use the
configuration file named /var/myapp/myapp.conf.
myapp.conf.
JAVA_OPTS=-Xmx1024M
LOG_FOLDER=/custom/log/folder
In my Electron application, I have a button in which a user can click which triggers node's child_process and runs an external .jar file in the background:
exec(`java -jar encoder.jar -i filein -o fileout`, function(err, stdout, stderr)
The actual .jar file is located within the root directory of the project. When running in development mode(unpackaged) this works great. However, when I package it and run the application, I get the following error:
There was an error: Error: Unable to access jarfile encoder.jar
Am I to assume that everything in the project folder gets packaged when using electron-packager? If not, what am I missing?
look into process.resourcesPath
I have a working zend framework 2 skeleton application, have added zf2 bin folder to the global windows path variable, yet I cannot run any command starting with zf.
I get the following error message:
The termzfis not recognized as the name of a cmdlet, function, script file, or operable program.