Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java I/O and Argument Passing Inside Eclipse(I/O Terminal Input Output Argument Passing Values)
Java I/O and Argument Passing Inside Eclipse [message #1778989] Wed, 27 December 2017 13:49 Go to next message
Eclipse UserFriend
Hello Eclipse Experts:

Please help me first chance you get, as I'm stuck and need to get this
done before Friday. Although, if you have a good solution, it'll still be
useful after then, too!!

(a) how do I do "stdin". When I run on terminal, it's easy.
what output I get, I just type in a response and hit enter (win/linux).
How do I do this in eclipse?

(b) how do I pass arguments to main before running? I would prefer not
to edit each time I need to run? Would also like to avoid some test
package (if at all possible).

(c) note that I'm on oxygen now and will most likely move to neon.

Thanks in advance,
Joe
Re: Java I/O and Argument Passing Inside Eclipse [message #1779134 is a reply to message #1778989] Wed, 03 January 2018 01:23 Go to previous messageGo to next message
Eclipse UserFriend
Any Java application you run will result in a Launch configuration being created and the running application will generally be associated with a Console that works just like a terminal where you can see what's printed and can enter data. Via Run -> Run Configurations... you can configure the launch configuration, i.e., to add arguments or VM arguments.

Note that Oxygen is newer than Neon so better you stick with Oxygen.
Re: Java I/O and Argument Passing Inside Eclipse [message #1779157 is a reply to message #1778989] Wed, 03 January 2018 05:07 Go to previous message
Eclipse UserFriend
You can also provide a file as the standard input and set it in Launch Configuration.
Previous Topic:How to serialize FileASTRequestor?
Next Topic:Java Development related questions.
Goto Forum:
  


Current Time: Fri Jul 11 23:01:35 EDT 2025

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

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

Back to the top