How to run lauch4j in command line? - launch4j

I am newbie to launch4j.I want to create exe file using launch4j.
I have followed this link for lauch4j tutorial.
Now,i want to create exe file in command line using launch4j?
I have tried following command but its not working.
>launch4j.exe sample.jar

To run it in console mode you need to use launch4jc.exe (not launch4j.exe) and feed config.xml to it as a parameter.
Docs:
To wrap a jar in console mode use launch4jc.exe and specify the configuration file.

Related

Is there any method to create a YAML file via Microsoft cmd?

I practice Kubernetes on my windows machine. I need to create a YAML file to run some objects on Kubernetes but I couldn't able to create YAML file with CLI command on windows. There are alternative ways to make it in brute force such as creating txt and then changing its extension manually but I wonder if there is any way to create a YAML file via cmd similar to Linux (touch yamlfile.yaml)
Thank you in advance.
update: #tquadrat answer helps to create yamlfile successfully but on windows cmd, when you try to edit yamlfile via default notepad, that turns out .txt again instead of .yaml
My palliative solution is to use VScode to create yamlfiles and also using terminal in VScode.
On Linux, touch yamlfile.yaml creates an empty file. If this is your goal, try
echo. > yamlfile.yaml

When i run the Sonar-Scanner got Execution Failure in terminal or commandline

I want to generate reports through command line or from terminal NOT FROM BROWSER
NOTE:- I want to verify through typescript the code sonar-scanner
I have install sonarqube-8.5.1.38104 and sonar-scanner-4.5.0.2216-linux and react-app-sonarqube.
In react-app-sonarqube i have all files are there screenshot is
And here is my below screenshot which i have run from terminal
and
I’m new to sonar and i dont know to generate reports through terminal or command line
Please help me how can i solve and any link or commands
The failure is caused by problem with parsing the test-report.xml file. As you wrote in the comment this file is empty. Empty file is not a valid XML file.
If this file is:
generated by a tool - you have to check this tool configuration (it is broken)
added manually by you - you have to delete it

Jupyter after installation "Anaconda"

I used to work with Anaconda for sometime, now i am trying to install it and facing some issues with Jupyter.eatch time i try to launch Jupyter i get
http://localhost:8892/undefined/tree
And is there a way to change the default browser from Internet Explorer to Google Crome ?
launching from command line
You can type jupyter-notebook.exe --help to get the command line options. The one you are interested in is shown below:
--browser=<Unicode> (NotebookApp.browser)
Default: ''
Specify what command to use to invoke a web browser when opening the
notebook. If not specified, the default browser will be determined by the
`webbrowser` standard library module, which allows setting of the BROWSER
environment variable to override it.
So jupyter-notebook.exe --browser='chrome' should work. You could incorporate this command into a Windows shortcut or consider the alternative below.
changing your config
From the command line type jupyter-notebook.exe --generate-config which will create a config file called jupyter_notebook_config.py located in your C:\Users\<user>\.jupyter directory. Open this file and uncomment the line containing c.NotebookApp.browser. Then set its value to be 'chrome'.

Silent installation of git through use of .bat file on Windows

I am currently working on a Windows batch file that will allow me to silently install git (the executable for which will be placed in the folder that the .bat file will be running from) in a pre-specified location on the file system.
I've found this article which seems to provide some suitable advice:
https://github.com/msysgit/msysgit/wiki/Silent-or-Unattended-Installation
However, I'm not entirely sure what parameters I would need to mention in my LOADINF file. I would like to pre-define the options that the user would manually select throughout the various stages of installation, so that it can run through from start to finish without prompting anything from the user.
Can anyone help or point me to a place where I can find these parameters and their available values?
Create a file, for eg. my-config.cnf (or my-config.ini) with the following content:
[Setup]
Lang=default
Dir=C:\Program Files (x86)\Git
Group=Git
NoIcons=0
SetupType=default
...
<other options as shown in the msysgit wiki>
Now, in the batch file, when you execute the installation file (say msysgit-install.exe), use /LOADINF as follows:
msysgit-install.exe /SILENT /LOADINF="my-config.cnf"

Pack setup files to single executable setup

I have an old setup of the old program written on c++ which contains multiple installation files files.
_SETUP.1
_SETUP.DLL
_INST32I.EX_
_ISDEL.EXE
SETUP.EXE
DISK1.ID
SETUP.INI
SETUP.INS
_SETUP.LIB
SETUP.PKG
I want to combine all that in to single executable file and i want to execute SETUP.EXE when user would run that single executable. Is it possible to achieve somehow?
The easiest way is simple create archive and say to user to to unpack that and to run SETUP.EXE but i am just wondering may be i can create setup like i describe above.
IExpress.exe is ideal for your job. Google for samples. It is included in your Windows installation. Just open a Command Prompt and type iexpress.exe - this starts a wizard that helps you getting started.

Resources