What is the problem with this

import java.lang.Runtime;public class prop {public static void main(String args[]){Process p = Runtime.exec("c:\\editora.exe");System.out.println(p);}}Error is non-static method exec cannot refrence from a static context
[297 byte] By [leewaqar] at [2007-9-26 1:29:10]
# 1
You are missing a bit:Process p = Runtime.getRuntime().exec("c:\\editora.exe");
jsalonen at 2007-6-29 1:25:08 > top of Java-index,Archived Forums,Java Programming...
# 2
SalonenThankx for help
leewaqar at 2007-6-29 1:25:08 > top of Java-index,Archived Forums,Java Programming...