How to execute java at the prompt by Eclipse

1

I made a code in java and in it I use "\ r" which only works at the prompt and would like to know how to execute this code at the prompt by eclipse itself.     

asked by anonymous 06.07.2015 / 21:30

1 answer

4

Directly through Eclipse , it is not possible. You will need to export the application as a Runnable JAR file and run it in a command window:

Right-click on your project:
Choose Runnable JAR file and click Next .

SelecttheLauncheconfigurationandindicatethelocationwheretosavejar.

Click Finish .

To run open a command window where you saved the jar and run the following command:

06.07.2015 / 21:54