Skip to main content



      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 12:27 Go to next message
Eclipse UserFriend
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 14:26 Go to previous messageGo to next message
Eclipse UserFriend
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 15:23 Go to previous messageGo to next message
Eclipse UserFriend
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 15:46 Go to previous message
Eclipse UserFriend
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: Wed May 14 09:56:20 EDT 2025

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

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

Back to the top