02. juni 2000 - 01:18Der er
1 kommentar og 2 løsninger
Start af andre programmer fra jdk 1.1.*
Jeg vil høre om der er nogen der kan fortælle mig hvorledes man eksekverer (fx en *.exe - windowsplatform) fra jdk 1.1.*
Det skal bruges i forbindelse med at har lavet en database over nogle mp3-filer, hvor fra jeg meget gerne vil kunne starte disse filer vha. en eller anden metode i Java, jeg kan bare ikke finde ud af hvilken...
public Process exec(String command) throws IOException
Executes the specified string command in a separate process.
The command argument is parsed into tokens and then executed as a command in a separate process. This method has exactly the same effect as exec(command, null).
Parameters: command - a specified system command. Returns: a Process object for managing the subprocess. Throws: SecurityException if the current thread cannot create a subprocess. See Also: exec
Runtime.exec(fil); med Process p = Runtime.getRuntime().exec(fil);
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.