Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » open and run saved java program(run as displays ant build not java application)
open and run saved java program [message #1703241] Wed, 29 July 2015 16:27 Go to next message
Will Klem is currently offline Will KlemFriend
Messages: 9
Registered: July 2015
Junior Member
using eclipse 4.5.0

I am rank newbie to programming; so my question may seem trivial. Google has not provided me with a solution that I can successfully follow.

Because I am using various sources to learn Java, I have created custom folders within the Workspace folder to make the projects easier for me to find. I have successfully created the "hello world" program. It is saved to C:/users/<myname>/workspace/my dummies practice folder. I don't know if this is part of the problem; therefore I am including this detail.

I have loaded the program into the IDE to run it again. When I right click in the editor and choose run as, ant build displays, without an option to run as Java application.

What have I done wrong, or what can I do to correct this?

Thanks for your replies.
Re: open and run saved java program [message #1703249 is a reply to message #1703241] Wed, 29 July 2015 18:26 Go to previous messageGo to next message
Will Klem is currently offline Will KlemFriend
Messages: 9
Registered: July 2015
Junior Member
I solved my own problem. Moving the program files to the default Workspace folder yields the desired results. Being new at this, I did not realize (or even think) that the saved programs must be in the same parent directory as the Eclipse folder. Will I find that this is common to all IDEs?

Thanks for taking the time to read my post anyway.
Re: open and run saved java program [message #1703252 is a reply to message #1703249] Wed, 29 July 2015 19:23 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/29/2015 12:26 PM, Will Klem wrote:
> I solved my own problem. Moving the program files to the default
> Workspace folder yields the desired results. Being new at this, I did
> not realize (or even think) that the saved programs must be in the same
> parent directory as the Eclipse folder. Will I find that this is common
> to all IDEs?
>
> Thanks for taking the time to read my post anyway.

No, there must have been something wrong with your original workspace.
You would do well to follow vogella.de's tutorial on Eclipse to orient
yourself to workspaces, projects, etc.

Best of luck.
Re: open and run saved java program [message #1703253 is a reply to message #1703252] Wed, 29 July 2015 19:46 Go to previous message
Will Klem is currently offline Will KlemFriend
Messages: 9
Registered: July 2015
Junior Member
I'll check out the tutorial. Thanks for pointing me to it.
Previous Topic:Console out put message
Next Topic:sap gui error
Goto Forum:
  


Current Time: Thu Mar 28 18:14:11 GMT 2024

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

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

Back to the top