|
|
|
|
[Solved] Activate & deactivate single-class among a multi-class Java project? [message #1772832 is a reply to message #1772815] |
Sat, 16 September 2017 03:26 |
RajibKumar Bandopadhyay Messages: 58 Registered: July 2014 |
Member |
|
|
My teacher, exactly repeating the same words as Mr. Eric Rizzo!
So I guess it isn't possible in Eclipse?
Nonetheless, I shall try to explain myself ...
Assuming that there are five stand-alone single Class declaring .Java files, each could be run independently of the other.
Say, to keep simplicity, five .java files, each of which prints simple console sentences, such as "hello world", Hi! Dr. Merks", "Hello, User" ... and so on. Simple stand-alone programs, without any branching or loops.
Normally, Eclipse would sequentially run all the files containing the main method, won't it?
That is why the question of activation-deactivation of the individual files occurs.
[correction!]
I checked. If each program contains the main() method, Eclipse doesn't look into other programs containing the main() individually. It will run the active file/window and stop.
It is only if the program doesn't contain the main() then it goes into the other files within the same project folder, looking for the main()
Solved! Thank you! I explained, then experimented myself! And got the result myself!
[Updated on: Mon, 18 September 2017 01:10] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07788 seconds