I am trying to write a simple java application using console input as GUI.
Below can the main method be seen: public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = "";
while (input.compareToIgnoreCase("Exit")!= 0) {
System.out.print("Enter something:");
try {
input = br.readLine();
String[] arguments = input.split("\\s+");
parse(arguments);
} catch (IOException ex) {
Logger.getLogger(CB1TestApplication.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
My problem is that running this on a Raspberry Pi (final target) "input = br.readLine();" don't seems to work.
The purpose of the application is to manipulate GPIO by giving appropriate commands. Not being able to debug on the Raspberry Pi,, makes the development tedious.
Using Netbeans and Java.
Can anyone help ?
//lg