Reputation: 9541
How can I exit Eclipse without killing applications launched from within eclipse? I understand that applications launched in debug mode have a network link with Eclipse, but there should be no problem with applications launched in release mode. However, no matter how I end eclipse (even killing the process) kills the launched applications a couple of seconds later, regardless of important unsaved data in those programs.
Motivation? Can be any of: eclipse internal error which requests a restart, needing to free more memory (eclipse is 330MiB), accidental kill by process explorer.
Upvotes: 6
Views: 2141
Reputation: 8247
Eclipse uses it's own emulator sandbox to run the compiled source code. Besides exporting your project to an executable .jar
and running it outside of Eclipse, there is no way that I know of to close down Eclipse and have your program running, since you are shutting down Eclipse's emulator when you close Eclipse.
I don't think you know how an emulator works based on your comment. Look at software such as VirtualBox. When you run OS inside of it, you are still using the system resources of the OS on which you are running VirtualBox.
This is like Eclipse. You need Java installed on your machine in order for Eclipse to work properly. Eclipse still uses the Java on your main machine, but it puts it within it's own sandbox for the safety and security of the system, and emulates your program. Look up how Eclipse runs it's programs if you don't believe me.
Also, some parts of Eclipse are written in Java, so you will also see some processes from that in the Process Explorer.
Upvotes: 1
Reputation: 11946
This exemplifies the danger of relying on tools, such as IDEs, to compile and run Java programs. Too many people (myself included) grow up learning Java the incorrect way: write the code, press the Green Play Button, and watch magic occur in the Console tab. Instead, Java programmers should first learn how to program using the command in order to understand the core basics of Java. This will help beginners understand concepts that a lot of veterans forget about; namely what a Classpath is. Also, this way you will know how to build and run your code on any environment in case you are having issues with an IDE.
Overall, an IDE is definitely helpful and I use one myself (Eclipse), but there always needs to be a command-line build/run process available as a fall-back option.
Upvotes: 0
Reputation: 1246
I don't think it will be going to be any way to do that, but really, none of the motivations you listed seems significative.
Upvotes: 0