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 06:46 Go to next message
FentonQueue  is currently offline FentonQueue
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 16:41 Go to previous message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hi

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

http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.user/concepts/cscrapbook.htm

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


Current Time: Sun Aug 31 04:31:52 EDT 2014

Powered by FUDForum. Page generated in 0.02834 seconds