Click here to Skip to main content
15,902,189 members
Home / Discussions / Java
   

Java

 
Questionvoice recognition Pin
Nileshbhoi12-Jun-12 21:11
Nileshbhoi12-Jun-12 21:11 
AnswerRe: voice recognition Pin
Richard MacCutchan12-Jun-12 22:05
mveRichard MacCutchan12-Jun-12 22:05 
AnswerRe: voice recognition Pin
Bernhard Hiller12-Jun-12 23:19
Bernhard Hiller12-Jun-12 23:19 
AnswerRe: voice recognition Pin
Manfred Rudolf Bihy13-Jun-12 0:11
professionalManfred Rudolf Bihy13-Jun-12 0:11 
Questionjava Pin
Basavaraj Neelagund11-Jun-12 18:58
Basavaraj Neelagund11-Jun-12 18:58 
AnswerRe: java Pin
Richard MacCutchan11-Jun-12 22:19
mveRichard MacCutchan11-Jun-12 22:19 
AnswerRe: java Pin
CodingLover11-Jun-12 22:29
CodingLover11-Jun-12 22:29 
Questionresponse to the execution of an commande by code java Pin
ahmadiss8-Jun-12 6:00
ahmadiss8-Jun-12 6:00 
hello
in my java program I excecute a command through the code => it works
but as I stepped into the prog : I found myself with a command that requires an answer after his execution

then by java program: I do not know how to answer but in the command line I responds with yes and it works
do you have any idea how to respond through the java code
I hope you understand the question:
Here's the code I use for execute command DOS :
Java
public static String importer_certificat(String alias,String nom_certi,String nom_keystore,String pass_keystore)
    {
        try{

            String b = "keytool -import -alias "+alias+" -file "+nom_certi+" -keystore "+nom_keystore +" -storepass "+pass_keystore;
            System.out.println(b);
            Process p = Runtime.getRuntime().exec(b);
            BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String inputLine, tous = "";
            while ((inputLine = in.readLine()) != null)
            {
                tous += "\n"+inputLine;
                System.out.println(inputLine);
            } 
            return tous;
        
        }catch(Exception e)
        {
            e.printStackTrace();
            return e.getMessage();
        }
    }

thank you in advance
AnswerRe: response to the execution of an commande by code java Pin
TorstenH.8-Jun-12 8:13
TorstenH.8-Jun-12 8:13 
GeneralRe: response to the execution of an commande by code java Pin
jschell8-Jun-12 11:55
jschell8-Jun-12 11:55 
AnswerRe: response to the execution of an commande by code java Pin
jschell8-Jun-12 11:59
jschell8-Jun-12 11:59 
Questionjava Pin
ssachin5797-Jun-12 20:50
ssachin5797-Jun-12 20:50 
AnswerRe: java Pin
Richard MacCutchan7-Jun-12 21:56
mveRichard MacCutchan7-Jun-12 21:56 
GeneralRe: java Pin
Peter_in_27807-Jun-12 22:16
professionalPeter_in_27807-Jun-12 22:16 
GeneralRe: java Pin
Richard MacCutchan8-Jun-12 0:13
mveRichard MacCutchan8-Jun-12 0:13 
AnswerRe: java Pin
Paul Conrad8-Jun-12 8:15
professionalPaul Conrad8-Jun-12 8:15 
Questionproblem with jarsigner Pin
ahmadiss6-Jun-12 23:12
ahmadiss6-Jun-12 23:12 
AnswerRe: problem with jarsigner Pin
Richard MacCutchan6-Jun-12 23:24
mveRichard MacCutchan6-Jun-12 23:24 
GeneralRe: problem with jarsigner Pin
ahmadiss6-Jun-12 23:52
ahmadiss6-Jun-12 23:52 
GeneralMessage Removed Pin
6-Jun-12 23:56
ahmadiss6-Jun-12 23:56 
GeneralRe: problem with jarsigner Pin
Richard MacCutchan7-Jun-12 4:57
mveRichard MacCutchan7-Jun-12 4:57 
GeneralRe: problem with jarsigner Pin
ahmadiss7-Jun-12 7:20
ahmadiss7-Jun-12 7:20 
Questionwhy i cant save the image? Pin
aelynne2-Jun-12 17:42
aelynne2-Jun-12 17:42 
AnswerRe: why i cant save the image? Pin
Paul Conrad2-Jun-12 17:59
professionalPaul Conrad2-Jun-12 17:59 
GeneralRe: why i cant save the image? Pin
aelynne2-Jun-12 18:02
aelynne2-Jun-12 18:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.