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.
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.
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: