|
Re: Run Different Program? [message #1787274 is a reply to message #1787262] |
Wed, 23 May 2018 05:00 |
Patrick Moran Messages: 141 Registered: March 2018 |
Senior Member |
|
|
If you have several projects open in one workspace, Eclipse will compile the one that "has the focus," i.e., the one that would react if you tried to type something in, do a copy and paste, etc.
That being said, I haven't seen your problem. Maybe something else is happening. Maybe you closed project one a long time ago, are currently working on project three, do some editing, save, and press run. However, what comes out is that old program number one.
That kind of odd behavior can occur. I think it occurs because of failure of Eclipse to keep the invisible cache files properly separated. Recently I worked on a very simple demo program for making an image appear on a GUI screen. I put that aside and went back to working on a complicated program for managing a database, a program that has complications in it that defeat the WindowMaker editor and cause it to crash Eclipse. Fortune was not with me that day, Eclipse went into the infinitely spinning progress signal, and I had to force-quit. When I got back to the DB program, I reverted a couple of recent changes, saved, and pushed run. I was completely surprised when the image from that early program popped up, and there was no sign of DB or buttons and field appropriate to it. I had to go into my directory structure, make a new workspace, copy the most recent file into it, restart Eclipse, move to the new workspace, import that tricky file, and then when I opened it and ran it there was no longer any problem.
I had a longer, better, answer a while ago, but when I tried to view before posting this website crashed or something and I lost all my work. I hope what I have written this time will go through and that it will be of some benefit to you.
|
|
|
|
|
|
|
|
Re: Run Different Program? [message #1787353 is a reply to message #1787352] |
Thu, 24 May 2018 03:19 |
Bronwyn Archer Messages: 5 Registered: May 2018 |
Junior Member |
|
|
If this is related in some way, there is another project I had stored on a flash drive from a different computer. Every time I try to run it, a box titled Run As comes up asking me to pick from two different kind of Ant Builds (I don't know what that means). Whichever one I pick, it gives an error saying "Build Failed. Reason: Unable to find an Ant build to run." I don't know if these two issues are connected, but if so, that's some more information to try and help solve it. Thank you so much.
[Updated on: Thu, 24 May 2018 03:20] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06897 seconds