aspose file tools*
The moose likes Oracle/OAS and the fly likes How to input data from keyboard using jdeveloper 10g for a java application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "How to input data from keyboard using jdeveloper 10g for a java application." Watch "How to input data from keyboard using jdeveloper 10g for a java application." New topic
Author

How to input data from keyboard using jdeveloper 10g for a java application.

Nancy Antony
Ranch Hand

Joined: Sep 06, 2007
Posts: 145

Hi,

I wrote a java program which inputs a byte from keyboard. I tried to execute this program in jDeveloper 10g. I'm not able to input data from the keyboard in Jdeveloper 10G. Can anyone help?

Regards,
nancy
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
Any code to show? Are you using BufferedReader?
Nancy Antony
Ranch Hand

Joined: Sep 06, 2007
Posts: 145

Hi,

I wrote a program like this:

import java.io.*;
public class UseRead {
public static void main(String args[]){
do{
c=(char)System.in.read();
System.out.println(c);
} while(c!='q');
System.out.println();
} }

I put this code in a file UseRead.java.
I put it in a Jdeveloper project and execute. I can see the console window, but I cannot input any characters. I wanna know how can I input data in Jdeveloper 10G console window.

Thanks.
Nancy
Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

Go to project properties, click on Run/Debug settings, select your Run configuration (Default) and Click Edit. Locate "Tool settings" and check "Allow program input" in Additional Runner Options. Save settings and run your program again. Now you will see under the console input field for your inputs.
Nancy Antony
Ranch Hand

Joined: Sep 06, 2007
Posts: 145

Thanks. It worked

Regards,
Nancy
 
Consider Paul's rocket mass heater.
 
subject: How to input data from keyboard using jdeveloper 10g for a java application.