Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:49 Go to next message
J K is currently offline J KFriend
Messages: 2
Registered: December 2017
Junior Member
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 06:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Java I/O and Argument Passing Inside Eclipse [message #1779157 is a reply to message #1778989] Wed, 03 January 2018 10:07 Go to previous message
Sarika Sinha is currently offline Sarika SinhaFriend
Messages: 131
Registered: February 2010
Location: Bangalore, India
Senior Member
You can also provide a file as the standard input and set it in Launch Configuration.

Sarika Sinha
JDT Programmer
Previous Topic:How to serialize FileASTRequestor?
Next Topic:Java Development related questions.
Goto Forum:
  


Current Time: Fri Apr 26 11:04:05 GMT 2024

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

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

Back to the top