Instructions
- 1
Set up your class:
class ExampleClass
public static void main(String[] args)
Create a "Process" object:
public static void main(String[] args)
Process p;
Use the Process object to call CuteFtp from the command line. This opens a separate process running CuteFTP that the user can interact with. The command for opening the file depends on the host operating system:
public static void main(String[] args)
Process p;
p = Runtime.getRuntime().exec("open CuteFTP.app"); //MacOS
No comments:
Post a Comment