2010-08-18 3 views
2

Je veux ouvrir un fichier CHM (aide) de mon application java ... Mon code ressemble à ceci:fichier CHM Open in java

Runtime.getRuntime().exec("hh.exe myhelpfile.chm");

Il fonctionne, mais comment puis-je ouvrir avec une page spécifique ??

Merci, Tom

Répondre

0
String s; 
    Process p; 
    try { 
     p = Runtime.getRuntime().exec("chmsee sample.chm"); 
     BufferedReader br = new BufferedReader(
       new InputStreamReader(p.getInputStream())); 
     p.waitFor(); 
     System.out.println("exit: " + p.exitValue()); 
     p.destroy(); 
    } catch (Exception e) { 
    }