Sometimes when I try to run my project using maven mvn clean install jetty:run it returns an error that says: "Address already in use".
I'm using Intellij IDEA 14.
Could you please help me to figure out what's happening?
This happens because every time the code is ran using the green arrow icon it generates a new instance and since the port (8080 in this case) is already in use it can't run again.
The first solution comes stopping the instance is currently in use, you can know if there is already an instance running at the bottom left corner tabs, if one of the tabs has a little green dot it means it is currently running.
One nice feature to avoid this is to go the run/debug configuration and set the option Single Instance Only at the top right corner as you can see here:
Now, you can run the project using only the green arrow/bug icons and it will stop it if it's already running, compile and then run again just with one click.
I found this very helpful to get rid of this silly error.
Another option is Go to Run-->Edit Configuration --> Startup/Connection tab
Select Debug and change the port beside Debugger Settings..
For mac, In terminal just write command
ps -A |grep java
This will give all the process running and then kill the process by
kill -9 PID
Where PID is the process id which you want to kill.
or
Just open Activity Monitor and, in the search box, write java and kill the running Java processes.
Try this out to Reset the winsock directory to restore the network.
Run this command and restart the PC and you're ready to go
You will need to run this as administrator
netsh winsock reset
Related
I have the problem that some apps are slow to start up, so I want to be able to run a command and continue to work in another workspace while I wait for the application to start. I want the application to start in the workspace it was run in.
How can I configure i3 to do this?
There must be some technique either using placeholder windows that swallow up the windows you want or by tagging the window to be opened with a workspace number and configuring i3 to recognize those tags and place the window on the appropriate workspace.
I'm surprised there is not a simple solution built in.
Windows 10 is displaying a VirtualBox Interface has active connections error message when shutting down after using Docker Quickstart Terminal on Virtual Box.
I tried to fix this by typing exit to close the terminal.
How can I smoothly close the terminal and get rid of the error message?
I came here because the title of this topic does not mention Docker. I had the same problem when using the application BlueStacks in Windows 10, without Docker. Windows did not shut down (or took a long time to do so) because 'VirtualBox still has active connections'. I'd like to share my solution here, using BlueStacks as just an example. I solved this by creating a task in task manager that runs a script on shutdown. The script kills the VirtualBox process, which is perfectly safe. Creating such a task is described here: https://superuser.com/questions/165142/using-task-scheduler-to-run-a-task-before-shutdown
The script for killing a process: wmic process where "name='BstkSVC.exe'" delete
Maybe this helps anyone who came here and is not using a container. Thanks.
Using the bellow commands should fix it:
docker-machine stop
exit
I was also fed of this problem but finally got a solution.
Just open the Task Manager then check for the Bluestacks Virtual Interface . Right click on it and click End Task.
I'm assuming that this is the problem due to the Bluestacks installed on your computer.
oh!! thanks
i found a easier method just put that text into notepad and convert it into cmd via save as and type the name of the file as ""please click on this before shutdown.cmd"" ("" are used to denote not in name
Just write the command below :
docker-machine stop
and then shut down your pc.
I have no idea how to do this, but I want to make a GUI application for Windows, using which I can start up a Node server placed inside an arbitrary folder. To do this using the command line, the process is simple, go to the directory and run 'npm start' or 'node app.js'. But how do I make a GUI which does the same?
A really easy way to build a GUI that can do this is to use PySimpleGUI. You can show the GUI Window, get a button click, then run the command. Take a look in the Cookbook and at the Demo programs. You'll find several examples that show "script launching". It's going to be the quickest way to see something on the screen.
I added this command to httpd_uwamp.conf :
#LOG ROTATION
TransferLog "|C:/UwAmp/bin/apache/bin/rotatelogs.exe C:/UwAmp/bin/apache/logs/backup/access-%Y_%m_%d.log 5M"
It works fine, but cmd window is always visible while Apache is on.
Does anyone know how to hide this cmd window ?
This happens to me too with my access logs. I couldn't figure out a solid solution but for now I hide it through the command line using this tool found here:
https://steve.fi/Software/windowhide/
I've used it on Windows 7 and Windows Server 2012
Credits go to Steve Kemp .. steve#steve.org.ku
Revisiting... You might want to check on what user profile your server is starting and make sure it's running as a service.
My rotatelogs windows finally cleared away when I ran my server applications as a service..
Under the Task Manager the username is now SYSTEM and no longer my user name.
With this modification, an "Interactive Services Detection" window would popup presenting the option to view the prompts from a self-contained screen.
I also modified the httpd.conf and moved my "CustomLog" and "ErrorLog" lines to the directives as they were outside, though I don't think it'll affect the outcome.
When you hit the WIN+R (Run command) in windows, you get the Run Box:
How can I get a handle to this command incase an entry for what I am typing is not found?
For example, this works great when you type cmd or calc.
But when you type: thisawesomething and hit the return key, you are greeted with this:
What I want to do is either of these two:
Whenever the file, folder or resource is not found via RUN, a default program (which I specify) is fired.
OR
If I can have a program running in the background which listens to an event raised by Windows when it can't find a file, what event am I looking for?
Is this even possible?
I have tried searching for this quite a bit but have hit a wall. Any help or a push in the right direction would be appreciated.
Note:
This article mentions that if I fire the RUN command programatically, there is a way to handle the notification of which program is about to be run. However, I am looking to modify (or patch) the default Windows Run functionality and not fire this programatically from another app. Thanks.