Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Command Line run java prog(Can I run a command line command within Eclipse)
Command Line run java prog [message #688682] Sat, 25 June 2011 10:46 Go to next message
FentonQueue  is currently offline FentonQueue Friend
Messages: 1
Registered: June 2011
Junior Member
For all of Eclipse's bells and whistles, I find it astonishing that I am unable to simply obtain a console window that I can enter commands in so that I can quickly run a some java code. For example, I've used DrJava previously, a much more basic editor than Eclipse, but it was handy in that it allowed me to create a class, compile and then run it with a command such as: java myProg(1, 2, 3) and then instantly view the results. But how can this be done in Eclipse? Is there a way??? Confused
Re: Command Line run java prog [message #689105 is a reply to message #688682] Sun, 26 June 2011 20:41 Go to previous message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member

Eclips has no Java shell or alike. I guess you have two options:

1. use your favourite shell: cd into your project; do whatever you want

2. If you just want to run some code snippets, give the scrapbook pages
(file > new > scrapbook) a try

Previous Topic:coding help
Next Topic:keyboard short cuts were not working in eclipse
Goto Forum:

Current Time: Mon Jun 25 00:46:32 GMT 2018

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

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

Back to the top