I am developing an application that will run a command line application from a Java interface. This app used to work on my fedora but now under Ubuntu I get this message:
Error opening terminal: unknown.
I am starting the application using this command:
Process clientProcess = Runtime.getRuntime().exec(clientcommand);
where clientcommand is a string that contains the command to be run. also please note that when I copy and paste the command directly to the console the program runs as supposed.What am I doing wrong? is there an issue with running a command this way?
when I copy and paste the command dirrectly to the console the program runs as supposedcould mean, that you use commands which only work in a shell. Invoking the shell would be needed then. Does the line fail with every command?