Skip to main content



      Home
Home » Newcomers » Newcomers » How to use CTRL+C in Eclipse console?
How to use CTRL+C in Eclipse console? [message #1176961] Fri, 08 November 2013 12:22 Go to next message
Eclipse UserFriend
I have a MINA server using Camel that does some clean up routines when being gracefuly terminated by pressing CTRL+C.

Using an Eclipse console, I pressed the"Terminate" button, expecting it to work like CTRL+C. However, such is not the case, Eclipse simply kills the process.

I also tried pressing CTRL+C in the Eclipse console but it does not work.

So, my question is simple, how do I terminate a program running in an Eclipse console using CTRL+C instead of using the Terminate button?
Re: How to use CTRL+C in Eclipse console? [message #1308285 is a reply to message #1176961] Mon, 21 April 2014 22:28 Go to previous messageGo to next message
Eclipse UserFriend
It is not yet solved.

http://stackoverflow.com/questions/868412/exiting-ctrlc-a-process-from-console-eclipse-vs-intellij
http://stackoverflow.com/questions/7835212/how-to-send-sigint-signal-from-java-to-an-external-process
http://stackoverflow.com/questions/8814383/sending-sigint-ctrl-c-to-program-running-in-eclipse-console
Re: How to use CTRL+C in Eclipse console? [message #1309620 is a reply to message #1308285] Tue, 22 April 2014 16:15 Go to previous messageGo to next message
Eclipse UserFriend
At the moment, you'll have to find the corresponding system process and use "kill" from the command line to send the right signal, e.g. 'kill -INT pid'.
Re: How to use CTRL+C in Eclipse console? [message #1310932 is a reply to message #1309620] Wed, 23 April 2014 09:43 Go to previous message
Eclipse UserFriend
yes, so it is.

As plugin developers, I could not event find Java API to get PID (and show it to user).
Does Eclipse platform provides an API?

Similar previous posts
- http://www.eclipse.org/forums/index.php/t/35035/ 'Ctrl-C' in a console
- http://www.eclipse.org/forums/index.php/t/71563/ sending interrupts (ctrl-c) to the console
- http://www.eclipse.org/forums/index.php/t/59552/ using CTRL-C event in eclipse
Previous Topic:Eclipse not running certain programs/Java SE crashing
Next Topic:Ecplise stopped working with Ubuntu upgrade to 14.04
Goto Forum:
  


Current Time: Wed Jun 25 05:00:51 EDT 2025

Powered by FUDForum. Page generated in 0.37009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top